Skip to content
This repository was archived by the owner on Feb 16, 2020. It is now read-only.

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Mendez committed Mar 22, 2017
1 parent 83bed76 commit 377ba55
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import org.powermock.modules.junit4.PowerMockRunner;

import info.juanmendez.mockrealm.MockRealm;
import info.juanmendez.mockrealm.decorators.RealmConfigurationDecorator;
import io.realm.Realm;
import io.realm.RealmConfiguration;
import io.realm.RealmList;
Expand All @@ -17,7 +16,6 @@
import io.realm.RealmResults;

import static junit.framework.Assert.assertNotNull;
import static org.junit.Assert.assertEquals;

/**
* Created by Juan Mendez on 3/22/2017.
Expand All @@ -27,11 +25,9 @@

@RunWith(PowerMockRunner.class)
@PowerMockIgnore({"org.mockito.*", "android.*"})
@PrepareForTest({ RealmConfiguration.class, Realm.class, RealmQuery.class, RealmResults.class, RealmList.class, RealmObject.class, RealmConfigurationDecorator.class })
@PrepareForTest({ RealmConfiguration.class, Realm.class, RealmQuery.class, RealmResults.class, RealmList.class, RealmObject.class })
public class RealmTests {

Realm realm;

@Before
public void before() throws Exception {
MockRealm.prepare();
Expand All @@ -58,6 +54,6 @@ public void shouldBuildNamePass(){

@Test
public void shouldBeSameRealm(){
assertEquals("is the same?", realm, Realm.getDefaultInstance());
assertNotNull("is the same?", Realm.getDefaultInstance());
}
}

0 comments on commit 377ba55

Please sign in to comment.