Let's say I have the below case class that translates directly a db table and where the id will be generated randomly on the creation of a new row.
case class Test(id: UUID, name: String)
Looking at the tests right now, I need to retrieve a row from Test and compare it with
val test1 = (...., "testName")
however I don't have the first parameter since it's created randomly and I would like to ignore it somehow...
I tried doing
test1 = (_, "testName")
but it's not valid.
Is there any way where I can ignore in Scala a case class parameter ?
Thanks!