package co.arcs.groove.basking.test;

import static org.junit.Assert.assertEquals;

import java.util.concurrent.ExecutionException;

import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;

import co.arcs.groove.basking.Config;
import co.arcs.groove.basking.SyncService;
import co.arcs.groove.basking.task.SyncTask.Outcome;

public class SyncServiceTest {

	private static final String USERNAME = "a8da7cd573d12b14a0af9b11252de9d8@mailinator.com";
	private static final String PASSWORD = "a8da7cd573d12b14a0af9b11252de9d8";

	@Rule
	public TemporaryFolder tempDir = new TemporaryFolder();

	@Test
	public void syncTest() throws InterruptedException, ExecutionException {

		Config config = new Config(USERNAME, PASSWORD, tempDir.getRoot());
		Outcome outcome = new SyncService().start(config).get();
		assertEquals(0, outcome.deleted);
		assertEquals(2, outcome.downloaded);
		assertEquals(0, outcome.failedToDownload);
	}
}

@@ -425,40 +425,32 @@
  = %22
-a8da7cd573d12b14a0af9b11252de9d8
+jka32muwfhqt3jf4qbubc8dp
 @mai
@@ -508,40 +508,32 @@
  = %22
-a8da7cd573d12b14a0af9b11252de9d8
+jka32muwfhqt3jf4qbubc8dp
 %22;%0A%0A

Fix rick-roll breaking test.