Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41866a8d authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

apply Jonathan suggestion

parent 53caafbb
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -71,10 +71,6 @@ public class UploadFileOperationTest {
        assertNotNull("Client is null. unexpected!", client);
    }

    @After
    public void tearDown() {
    }

    /**
     * Prepare content of database for test
     * Insert three test folder: small, medium, large
+1 −9
Original line number Diff line number Diff line
@@ -64,16 +64,8 @@ public class InitializerServiceTest extends AbstractServiceIT<InitializerService
        registerSharedPref();
        prepareValidAccount();
        enableMediaAndSettingsSync(TestUtils.getValidAccount());
        //WorkManager.initialize(context, );
        /*try {
            testConnection(CommonUtils.getOwnCloudClient(validAccount, context));
        }catch(Exception e){
            fail(e.getMessage());
        }*/
        mServiceController.create().startCommand(0,0);
        //mService.onRemoteOperationFinish(new CreateInitialFolderRemoteOperation(null, true, context), new RemoteOperationResult(true, new MkColMethod("")));

        //fail("Not yet implemented");
        mServiceController.create().startCommand(0,0);
    }

    /**
+0 −5
Original line number Diff line number Diff line
@@ -135,17 +135,12 @@ public class ObserverServiceTest extends AbstractServiceIT<ObserverService> {
        createRemoteFolder(createSingleTestSyncedFolder());
        registerSharedPref();

        //Start the service
        mServiceController.create().startCommand(0, 0);

        List<ShadowLog.LogItem> logs = ShadowLog.getLogs();
        ShadowLog.LogItem lastLog = logs.get(logs.size()-3);

        assertEquals("expected: 'Going to scan remote files' but found: '"+lastLog.msg, "Going to scan remote files", lastLog.msg);

        //Tear down
        mService.deleteDatabase(DbHelper.DATABASE_NAME);
        //assertTrue("Database hasn't been removed", myService.deleteDatabase(DbHelper.DATABASE_NAME));
    }