@Override protected void setUp() throws Exception { super.setUp(); Intent intent = new Intent(); intent.setClassName("org.eclipse.paho.android.service", "MqttService"); IBinder binder = bindService(intent); TestProperties properties = new TestProperties(this.getContext()); serverURI = properties.getServerURI(); mqttSSLServerURI = properties.getServerSSLURI(); waitForCompletionTime = properties.getWaitForCompletionTime(); String clientKeyStore = properties.getClientKeyStore(); keyStorePwd = properties.getClientKeyStorePassword(); }
@Override public IBinder bindService(Intent intent) { return super.bindService(intent); }
@Override public void setupService() { super.setupService(); }
@Override public void startService(Intent intent) { super.startService(intent); } }
@Override public void tearDown() throws Exception { super.tearDown(); }
@Override public void shutdownService() { super.shutdownService(); }
@Override public void startService(Intent intent) { super.startService(intent); } }
@Override public void tearDown() throws Exception { super.tearDown(); }
@Override public void shutdownService() { super.shutdownService(); }
@Override public void setUp() throws Exception { super.setUp(); }
@Override public void setupService() { super.setupService(); }
@Override public IBinder bindService(Intent intent) { return super.bindService(intent); }
@Override public void setUp() throws Exception { super.setUp(); }
@Override protected void setUp() throws Exception { super.setUp(); }
@Override protected void setUp() throws Exception { super.setUp(); }
@Override protected void setUp() throws Exception { super.setUp(); Log.i("GoroTest", "SET UP"); mockTask = new MockTask(); executor.commands.clear(); final CountDownLatch bindSyc = new CountDownLatch(1); onMainThread(new Runnable() { @Override public void run() { GoroService.setup(getContext(), Goro.createWithDelegate(executor)); Log.i("GoroTest", "BINDING..."); goro = Goro.from(bindService(new Intent())); assertThat(goro).isNotNull(); bindSyc.countDown(); } }); bindSyc.await(); Log.i("GoroTest", "Got Goro"); assertThat(goro).isNotNull(); addListener(); }