Search in sources :

Example 1 with TestModule

use of com.tevinjeffrey.rutgersct.TestModule in project Rutgers-Course-Tracker by tevjef.

the class CoursePresenterImplTest method setUp.

@Before
public void setUp() throws Exception {
    ObjectGraph og = ObjectGraph.create(new TestModule(), new MockModule());
    og.inject(this);
    coursePresenterImpl = new CoursePresenterImpl(TestConts.getPrimarySemesterRequest());
    og.inject(coursePresenterImpl);
}
Also used : ObjectGraph(dagger.ObjectGraph) TestModule(com.tevinjeffrey.rutgersct.TestModule) Before(org.junit.Before)

Example 2 with TestModule

use of com.tevinjeffrey.rutgersct.TestModule in project Rutgers-Course-Tracker by tevjef.

the class SubjectPresenterImplTest method setUp.

@Before
public void setUp() throws Exception {
    ObjectGraph og = ObjectGraph.create(new TestModule(), new MockModule());
    og.inject(this);
    subjectPresenterImpl = new SubjectPresenterImpl(TestConts.getPrimarySemesterRequest());
    og.inject(subjectPresenterImpl);
}
Also used : ObjectGraph(dagger.ObjectGraph) TestModule(com.tevinjeffrey.rutgersct.TestModule) Before(org.junit.Before)

Example 3 with TestModule

use of com.tevinjeffrey.rutgersct.TestModule in project Rutgers-Course-Tracker by tevjef.

the class TrackedSectionsPresenterImplTest method setUp.

@Before
public void setUp() throws Exception {
    ObjectGraph og = ObjectGraph.create(new TestModule(), new MockModule());
    og.inject(this);
    trackedSectionsPresenterImpl = new TrackedSectionsPresenterImpl();
    og.inject(trackedSectionsPresenterImpl);
}
Also used : ObjectGraph(dagger.ObjectGraph) TestModule(com.tevinjeffrey.rutgersct.TestModule) Before(org.junit.Before)

Example 4 with TestModule

use of com.tevinjeffrey.rutgersct.TestModule in project Rutgers-Course-Tracker by tevjef.

the class SectionInfoPresenterImplTest method setUp.

@Before
public void setUp() throws Exception {
    ObjectGraph og = ObjectGraph.create(new TestModule(), new MockModule());
    og.inject(this);
    sectioninfoPresenterImpl = new SectionInfoPresenterImpl(section);
    og.inject(sectioninfoPresenterImpl);
}
Also used : ObjectGraph(dagger.ObjectGraph) TestModule(com.tevinjeffrey.rutgersct.TestModule) Before(org.junit.Before)

Example 5 with TestModule

use of com.tevinjeffrey.rutgersct.TestModule in project Rutgers-Course-Tracker by tevjef.

the class RetroRutgersTest method setUp.

@Before
public void setUp() throws Exception {
    ObjectGraph og = ObjectGraph.create(new TestModule());
    og.inject(this);
    retroRutgers = new RetroRutgers(rutgersService, backgroundThread);
}
Also used : ObjectGraph(dagger.ObjectGraph) TestModule(com.tevinjeffrey.rutgersct.TestModule) Before(org.junit.Before)

Aggregations

TestModule (com.tevinjeffrey.rutgersct.TestModule)6 ObjectGraph (dagger.ObjectGraph)6 Before (org.junit.Before)6