Skip to content

Commit

Permalink
Merge branch 'master' of github.com:tw-prototype/MarbleMaze
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul Joshi committed Mar 21, 2011
2 parents 20fca23 + 283cb7f commit f44729a
Show file tree
Hide file tree
Showing 11 changed files with 131 additions and 0 deletions.
12 changes: 12 additions & 0 deletions AndroidFunctionalTest/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.thoughtworks.mm.test"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">

<uses-library android:name="android.test.runner" />
</application>
<uses-sdk android:minSdkVersion="8" />
<instrumentation android:targetPackage="com.thoughtworks.mm" android:name="android.test.InstrumentationTestRunner" />
</manifest>
11 changes: 11 additions & 0 deletions AndroidFunctionalTest/default.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "build.properties", and override values to adapt the script to your
# project structure.

# Project target.
target=android-8
23 changes: 23 additions & 0 deletions AndroidFunctionalTest/gen/com/thoughtworks/mm/test/R.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/

package com.thoughtworks.mm.test;

public final class R {
public static final class attr {
}
public static final class drawable {
public static final int icon=0x7f020000;
}
public static final class layout {
public static final int main=0x7f030000;
}
public static final class string {
public static final int app_name=0x7f040001;
public static final int hello=0x7f040000;
}
}
Binary file added AndroidFunctionalTest/lib/robotium-solo-2.2.jar
Binary file not shown.
34 changes: 34 additions & 0 deletions AndroidFunctionalTest/proguard.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*

-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class com.android.vending.licensing.ILicensingService

-keepclasseswithmembernames class * {
native <methods>;
}

-keepclasseswithmembernames class * {
public <init>(android.content.Context, android.util.AttributeSet);
}

-keepclasseswithmembernames class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}

-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}

-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
Binary file added AndroidFunctionalTest/res/drawable-hdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added AndroidFunctionalTest/res/drawable-ldpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added AndroidFunctionalTest/res/drawable-mdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions AndroidFunctionalTest/res/layout/main.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>
</LinearLayout>
5 changes: 5 additions & 0 deletions AndroidFunctionalTest/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Hello World!</string>
<string name="app_name">MarbleMazeTest</string>
</resources>
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package com.thoughtworks.mm.test;

import com.jayway.android.robotium.solo.Solo;
import com.thoughtworks.mm.MarbleMaze;

import android.test.ActivityInstrumentationTestCase2;

public class MarbleMazeTest extends
ActivityInstrumentationTestCase2<MarbleMaze> {

private Solo solo;

public MarbleMazeTest(Class<MarbleMaze> activityClass) {
super("com.thoughtworks.mm", activityClass);
}

@Override
protected void setUp() throws Exception {
super.setUp();
solo = new Solo(getInstrumentation(), getActivity());
}

@Override
protected void tearDown() throws Exception {
try {
solo.finalize();
} catch (Throwable e) {
e.printStackTrace();
}
getActivity().finish();
super.tearDown();
}

}

0 comments on commit f44729a

Please sign in to comment.