use of com.github.vase4kin.teamcityapp.TeamCityApplication in project TeamCityApp by vase4kin.
the class ArtifactListFragmentTest method setUp.
@Before
public void setUp() {
TeamCityApplication app = (TeamCityApplication) InstrumentationRegistry.getInstrumentation().getTargetContext().getApplicationContext();
app.getRestApiInjector().sharedUserStorage().clearAll();
app.getRestApiInjector().sharedUserStorage().saveGuestUserAccountAndSetItAsActive(Mocks.URL);
ConditionWatcher.setTimeoutLimit(TIMEOUT);
}
use of com.github.vase4kin.teamcityapp.TeamCityApplication in project TeamCityApp by vase4kin.
the class SplashActivityTest method setUp.
@Before
public void setUp() {
TeamCityApplication app = (TeamCityApplication) InstrumentationRegistry.getInstrumentation().getTargetContext().getApplicationContext();
app.getAppInjector().sharedUserStorage().clearAll();
}
use of com.github.vase4kin.teamcityapp.TeamCityApplication in project TeamCityApp by vase4kin.
the class SplashActivityTest method testUserNavigatesToRootProjectsActivity.
/**
* Workaround test to test that root projects activity is opened
*/
@Test
public void testUserNavigatesToRootProjectsActivity() throws Exception {
// Prepate data
TeamCityApplication app = (TeamCityApplication) InstrumentationRegistry.getInstrumentation().getTargetContext().getApplicationContext();
app.getAppInjector().sharedUserStorage().saveGuestUserAccountAndSetItAsActive(Mocks.URL);
// Launch activity
mActivityRule.launchActivity(null);
// Check that root projects activity is opened
matchToolbarTitle("Projects");
}
Aggregations