You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a library that contains a couple of classes like this:
data classFoo(...) {
data classData(...)
}
data classBar(...) {
data classData(...)
}
When trying to write tests, I'd like to generate fakes based on those Data classes, and so I added
@UsesFakes(Foo.Data::class)
and
@UsesFakes(Bar.Data::class)
to their respective cases.
Unfortunately I get a kotlin.io.FileAlreadyExistsException where fakeData already exists. Is there a way to give a custom name to the fake? something like
@UsesFakes(Foo.Data::class as FooData)
Cheers!
The text was updated successfully, but these errors were encountered:
Hi there,
I'm using a library that contains a couple of classes like this:
When trying to write tests, I'd like to generate fakes based on those
Data
classes, and so I addedand
to their respective cases.
Unfortunately I get a
kotlin.io.FileAlreadyExistsException
wherefakeData
already exists. Is there a way to give a custom name to the fake? something likeCheers!
The text was updated successfully, but these errors were encountered: