Update test project to Robotium 3.0.
This commit is contained in:
parent
29e102b5d0
commit
a4bc0ada80
|
@ -2,9 +2,9 @@
|
|||
<classpath>
|
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/Yaaic"/>
|
||||
<classpathentry kind="lib" path="libs/robotium-solo-2.0.2.jar"/>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="src" path="gen"/>
|
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
|
||||
<classpathentry kind="lib" path="libs/robotium-solo-3.0.jar"/>
|
||||
<classpathentry kind="output" path="bin/classes"/>
|
||||
</classpath>
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -58,8 +58,10 @@ public class ChannelScenarios extends ActivityInstrumentationTestCase2
|
|||
@Override
|
||||
protected void setUp()
|
||||
{
|
||||
if (solo == null) {
|
||||
solo = new Solo(getInstrumentation(), getActivity());
|
||||
helper = new ScenarioHelper(solo);
|
||||
}
|
||||
|
||||
helper.createTestServer();
|
||||
helper.connectToServer();
|
||||
|
@ -74,11 +76,7 @@ public class ChannelScenarios extends ActivityInstrumentationTestCase2
|
|||
helper.disconnectFromServer();
|
||||
helper.deleteTestServer();
|
||||
|
||||
try {
|
||||
solo.finalize();
|
||||
} catch (Throwable t) {
|
||||
Log.d("Yaaic/ChannelScenarios", t.getMessage());
|
||||
}
|
||||
solo.finishOpenedActivities();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -58,8 +58,10 @@ public class ConnectionScenarios extends ActivityInstrumentationTestCase2
|
|||
@Override
|
||||
protected void setUp()
|
||||
{
|
||||
if (solo == null) {
|
||||
solo = new Solo(getInstrumentation(), getActivity());
|
||||
helper = new ScenarioHelper(solo);
|
||||
}
|
||||
|
||||
helper.createTestServer();
|
||||
helper.connectToServer();
|
||||
|
@ -74,11 +76,7 @@ public class ConnectionScenarios extends ActivityInstrumentationTestCase2
|
|||
helper.disconnectFromServer();
|
||||
helper.deleteTestServer();
|
||||
|
||||
try {
|
||||
solo.finalize();
|
||||
} catch (Throwable t) {
|
||||
Log.d("Yaaic/ChannelScenarios", t.getMessage());
|
||||
}
|
||||
solo.finishOpenedActivities();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -60,9 +60,11 @@ public class ServerListScenarios extends ActivityInstrumentationTestCase2
|
|||
@Override
|
||||
protected void setUp()
|
||||
{
|
||||
if (solo == null) {
|
||||
solo = new Solo(getInstrumentation(), getActivity());
|
||||
helper = new ScenarioHelper(solo);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Cleanup after run
|
||||
|
@ -70,11 +72,7 @@ public class ServerListScenarios extends ActivityInstrumentationTestCase2
|
|||
@Override
|
||||
protected void tearDown()
|
||||
{
|
||||
try {
|
||||
solo.finalize();
|
||||
} catch (Throwable t) {
|
||||
Log.d("Yaaic/ChannelScenarios", t.getMessage());
|
||||
}
|
||||
solo.finishOpenedActivities();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue