package au.com.team2moro.couchdbsyncertest;

import au.com.team2moro.couchdbsyncer.Credentials;
import au.com.team2moro.couchdbsyncer.DatabaseStore;
import au.com.team2moro.couchdbsyncer.SyncerService;

public class TestSyncerService extends SyncerService {

	TestApplication application;
	
	public TestSyncerService() {
		super();
		this.application = (TestApplication) getApplication();
	}
	
	protected DatabaseStore getDatabaseStore() {
		DatabaseStore dbstore = application.getDatabaseStore();
		return dbstore;
	}
	
	protected Credentials getCredentials() {
		Credentials credentials = application.getDatabaseCredentials(getDatabase());
		return credentials;
	}
}

@@ -40,16 +40,42 @@
 est;%0D%0A%0D%0A
+import android.util.Log;%0D%0A
 import a
@@ -288,94 +288,178 @@
  %7B%0D%0A
-%0D%0A%09TestApplication application;%0D%0A%09%0D%0A%09public TestSyncerService() %7B%0D%0A%09%09super();%0D%0A%09%09this.
+%09public static final String TAG = %22TestSyncerService%22;%0D%0A%09%0D%0A%09public TestSyncerService() %7B%0D%0A%09%09super();%0D%0A%09%7D%0D%0A%09%0D%0A%09protected DatabaseStore getDatabaseStore() %7B%0D%0A%09%09Log.d(TAG, %22
 appl
@@ -468,16 +468,21 @@
 ation = 
+%22 + (
 (TestApp
@@ -511,92 +511,62 @@
 on()
+))
 ;%0D%0A%09
-%7D%0D%0A%09%0D%0A%09protected DatabaseStore getDatabaseStore() %7B%0D%0A%09%09DatabaseStore dbstore = a
+%09DatabaseStore dbstore = ((TestApplication) getA
 ppli
@@ -563,32 +563,35 @@
 ) getApplication
+())
 .getDatabaseStor
@@ -693,17 +693,39 @@
 tials = 
-a
+((TestApplication) getA
 pplicati
@@ -726,16 +726,19 @@
 lication
+())
 .getData

make the test app actually work