|
|
|
@ -32,7 +32,7 @@ class FavoriteSessionUnitTest : RealmInstrumentedUnitTest() { |
|
|
|
realm.insert(s3) |
|
|
|
realm.insert(s3) |
|
|
|
|
|
|
|
|
|
|
|
realm.commitTransaction() |
|
|
|
realm.commitTransaction() |
|
|
|
val favSession = FavoriteSessionFinder.favoriteSession(Session.Type.CASH_GAME, null, realm, InstrumentationRegistry.getInstrumentation().targetContext) |
|
|
|
val favSession = FavoriteSessionFinder.favoriteSession(Session.Type.CASH_GAME.ordinal, null, realm, InstrumentationRegistry.getInstrumentation().targetContext) |
|
|
|
|
|
|
|
|
|
|
|
if (favSession != null) { |
|
|
|
if (favSession != null) { |
|
|
|
Assert.assertEquals(4.0, favSession.cgBigBlind) |
|
|
|
Assert.assertEquals(4.0, favSession.cgBigBlind) |
|
|
|
@ -68,7 +68,7 @@ class FavoriteSessionUnitTest : RealmInstrumentedUnitTest() { |
|
|
|
realm.insert(s3) |
|
|
|
realm.insert(s3) |
|
|
|
|
|
|
|
|
|
|
|
realm.commitTransaction() |
|
|
|
realm.commitTransaction() |
|
|
|
val favSession = FavoriteSessionFinder.favoriteSession(Session.Type.CASH_GAME, loc2, realm, InstrumentationRegistry.getInstrumentation().targetContext) |
|
|
|
val favSession = FavoriteSessionFinder.favoriteSession(Session.Type.CASH_GAME.ordinal, loc2, realm, InstrumentationRegistry.getInstrumentation().targetContext) |
|
|
|
|
|
|
|
|
|
|
|
if (favSession != null) { |
|
|
|
if (favSession != null) { |
|
|
|
Assert.assertEquals(1.0, favSession.cgBigBlind) |
|
|
|
Assert.assertEquals(1.0, favSession.cgBigBlind) |
|
|
|
|