public void setUp() { Locale.setDefault( Locale.US); // To avoid issues with "." and "," in asserts containing file sizes final MainChatController mainChatController = getActivity(); final Instrumentation instrumentation = getInstrumentation(); solo = new Solo(instrumentation, mainChatController); me = RobotiumTestUtils.getMe(mainChatController); final AndroidUserInterface ui = TestUtils.getFieldValue( mainChatController, AndroidUserInterface.class, "androidUserInterface"); notificationService = TestUtils.getFieldValue(ui, NotificationService.class, "notificationService"); if (albert == null) { albert = new TestClient("Albert", 0); tina = new TestClient("Tina", 0); xen = new TestClient("Xen", 0); albert.logon(); tina.logon(); xen.logon(); // Make sure we have an image to send from a test client to the real client FileUtils.copyKouChatImageFromAssetsToSdCard(instrumentation, mainChatController); image = FileUtils.getKouChatImageFromSdCard(mainChatController); requestedFile = getLocationToRequestedFile(""); requestedFile1 = getLocationToRequestedFile("_1"); requestedFile2 = getLocationToRequestedFile("_2"); } solo.sleep(500); checkThatNoFileTransferNotificationsAreActive(); }