From 05c7e42a8ce55a21c94338febad593bfbf638655 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 3 Dec 2017 10:29:17 +0200 Subject: MERGE --- .../Android_Studio/Tango.UnitTesting/.gitignore | 1 + .../Android_Studio/Tango.UnitTesting/build.gradle | 48 +++++++++ .../Tango.UnitTesting/proguard-rules.pro | 25 +++++ .../tango/unittesting/Synchronization_TST.java | 71 +++++++++++++ .../Tango.UnitTesting/src/main/AndroidManifest.xml | 24 +++++ .../main/java/com/twine/tango/unittesting/App.java | 20 ++++ .../com/twine/tango/unittesting/MainActivity.java | 15 +++ .../main/res/drawable/ic_launcher_background.xml | 113 +++++++++++++++++++++ .../src/main/res/layout/activity_main.xml | 18 ++++ .../src/main/res/mipmap-anydpi-v26/ic_launcher.xml | 5 + .../res/mipmap-anydpi-v26/ic_launcher_round.xml | 5 + .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3358 bytes .../res/mipmap-hdpi/ic_launcher_foreground.png | Bin 0 -> 5117 bytes .../src/main/res/mipmap-hdpi/ic_launcher_round.png | Bin 0 -> 5084 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2386 bytes .../res/mipmap-mdpi/ic_launcher_foreground.png | Bin 0 -> 2652 bytes .../src/main/res/mipmap-mdpi/ic_launcher_round.png | Bin 0 -> 3179 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4648 bytes .../res/mipmap-xhdpi/ic_launcher_foreground.png | Bin 0 -> 7011 bytes .../main/res/mipmap-xhdpi/ic_launcher_round.png | Bin 0 -> 7381 bytes .../src/main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 7008 bytes .../res/mipmap-xxhdpi/ic_launcher_foreground.png | Bin 0 -> 14578 bytes .../main/res/mipmap-xxhdpi/ic_launcher_round.png | Bin 0 -> 11545 bytes .../src/main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 9442 bytes .../res/mipmap-xxxhdpi/ic_launcher_foreground.png | Bin 0 -> 21908 bytes .../main/res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 0 -> 16109 bytes .../src/main/res/values/colors.xml | 6 ++ .../src/main/res/values/strings.xml | 3 + .../src/main/res/values/styles.xml | 11 ++ .../twine/tango/unittesting/ExampleUnitTest.java | 19 ++++ 30 files changed, 384 insertions(+) create mode 100644 Software/Android_Studio/Tango.UnitTesting/.gitignore create mode 100644 Software/Android_Studio/Tango.UnitTesting/build.gradle create mode 100644 Software/Android_Studio/Tango.UnitTesting/proguard-rules.pro create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/androidTest/java/com/twine/tango/unittesting/Synchronization_TST.java create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/AndroidManifest.xml create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/java/com/twine/tango/unittesting/App.java create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/java/com/twine/tango/unittesting/MainActivity.java create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/res/drawable/ic_launcher_background.xml create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/res/layout/activity_main.xml create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-anydpi-v26/ic_launcher.xml create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-hdpi/ic_launcher_foreground.png create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-hdpi/ic_launcher_round.png create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-mdpi/ic_launcher_foreground.png create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-mdpi/ic_launcher_round.png create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xhdpi/ic_launcher_round.png create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxhdpi/ic_launcher_round.png create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/res/values/colors.xml create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/res/values/strings.xml create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/main/res/values/styles.xml create mode 100644 Software/Android_Studio/Tango.UnitTesting/src/test/java/com/twine/tango/unittesting/ExampleUnitTest.java (limited to 'Software/Android_Studio/Tango.UnitTesting') diff --git a/Software/Android_Studio/Tango.UnitTesting/.gitignore b/Software/Android_Studio/Tango.UnitTesting/.gitignore new file mode 100644 index 000000000..796b96d1c --- /dev/null +++ b/Software/Android_Studio/Tango.UnitTesting/.gitignore @@ -0,0 +1 @@ +/build diff --git a/Software/Android_Studio/Tango.UnitTesting/build.gradle b/Software/Android_Studio/Tango.UnitTesting/build.gradle new file mode 100644 index 000000000..f1b2b0ab3 --- /dev/null +++ b/Software/Android_Studio/Tango.UnitTesting/build.gradle @@ -0,0 +1,48 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion 26 + buildToolsVersion "26.0.1" + + + defaultConfig { + applicationId "com.twine.tango.unittesting" + minSdkVersion 22 + targetSdkVersion 26 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + + multiDexEnabled true + + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } +} + +dependencies { + implementation fileTree(include: ['*.jar'], dir: 'libs') + implementation 'com.android.support:appcompat-v7:26.1.0' + implementation 'com.android.support.constraint:constraint-layout:1.0.2' + testImplementation 'junit:junit:4.12' + androidTestImplementation 'com.android.support.test:runner:1.0.1' + androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' + implementation project(':Tango.Core') + implementation project(':Tango.DAL') + implementation project(':Tango.Integration') + implementation project(':Tango.SharedUI') + implementation project(':Tango.Stubs') + implementation project(':Tango.Synchronization') + implementation project(':Tango.Transport') + implementation project(':Tango.Web') +} diff --git a/Software/Android_Studio/Tango.UnitTesting/proguard-rules.pro b/Software/Android_Studio/Tango.UnitTesting/proguard-rules.pro new file mode 100644 index 000000000..a0eef131a --- /dev/null +++ b/Software/Android_Studio/Tango.UnitTesting/proguard-rules.pro @@ -0,0 +1,25 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in C:\Users\Roy\AppData\Local\Android\Sdk/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile diff --git a/Software/Android_Studio/Tango.UnitTesting/src/androidTest/java/com/twine/tango/unittesting/Synchronization_TST.java b/Software/Android_Studio/Tango.UnitTesting/src/androidTest/java/com/twine/tango/unittesting/Synchronization_TST.java new file mode 100644 index 000000000..7353fd0d4 --- /dev/null +++ b/Software/Android_Studio/Tango.UnitTesting/src/androidTest/java/com/twine/tango/unittesting/Synchronization_TST.java @@ -0,0 +1,71 @@ +package com.twine.tango.unittesting; + +import android.content.Context; +import android.support.test.InstrumentationRegistry; +import android.support.test.runner.AndroidJUnit4; + +import com.elvishew.xlog.XLog; +import com.raizlabs.android.dbflow.config.FlowManager; +import com.raizlabs.android.dbflow.sql.language.SQLite; +import com.twine.tango.dal.TangoDB; +import com.twine.tango.dal.dao.OrganizationsDAO; +import com.twine.tango.dal.entities.Organization; +import com.twine.tango.integration.MachineIdentityProvider; +import com.twine.tango.sharedui.AppInitializer; +import com.twine.tango.synchronization.ITangoSynchronizer; +import com.twine.tango.synchronization.TangoSynchronizer; +import com.twine.tango.web.APIFactory; + +import org.junit.Test; +import org.junit.runner.RunWith; + +import static org.junit.Assert.*; + +/** + * Instrumented test, which will execute on an Android device. + * + * @see Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class Synchronization_TST +{ + @Test + public void useAppContext() throws Exception + { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getTargetContext(); + + assertEquals("com.twine.tango.unittesting", appContext.getPackageName()); + } + + @Test + public void performSynchronization() + { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getTargetContext(); + + AppInitializer.init(appContext); + + + + for (Organization org : OrganizationsDAO.getAllOrganizations()) + { + XLog.i(org.getName()); + } + + + ITangoSynchronizer synchronizer = new TangoSynchronizer(new APIFactory("http://10.0.2.2:45455/api/"), new MachineIdentityProvider()); + + synchronizer.synchronize().subscribe(() -> + { + for (Organization org : OrganizationsDAO.getAllOrganizations()) + { + XLog.i(org.getName()); + } + + }, (ex) -> + { + ex.printStackTrace(); + }); + } +} diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/AndroidManifest.xml b/Software/Android_Studio/Tango.UnitTesting/src/main/AndroidManifest.xml new file mode 100644 index 000000000..89fc2427a --- /dev/null +++ b/Software/Android_Studio/Tango.UnitTesting/src/main/AndroidManifest.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/java/com/twine/tango/unittesting/App.java b/Software/Android_Studio/Tango.UnitTesting/src/main/java/com/twine/tango/unittesting/App.java new file mode 100644 index 000000000..51ba62de8 --- /dev/null +++ b/Software/Android_Studio/Tango.UnitTesting/src/main/java/com/twine/tango/unittesting/App.java @@ -0,0 +1,20 @@ +package com.twine.tango.unittesting; + +import android.app.Application; + +import com.twine.tango.dal.TangoDB; + +import java.io.File; + +/** + * Created by Roy on 12/2/2017. + */ + +public class App extends Application +{ + @Override + public File getDatabasePath(String name) + { + return new File(TangoDB.getDataBasePath(name)); + } +} diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/java/com/twine/tango/unittesting/MainActivity.java b/Software/Android_Studio/Tango.UnitTesting/src/main/java/com/twine/tango/unittesting/MainActivity.java new file mode 100644 index 000000000..4be88237d --- /dev/null +++ b/Software/Android_Studio/Tango.UnitTesting/src/main/java/com/twine/tango/unittesting/MainActivity.java @@ -0,0 +1,15 @@ +package com.twine.tango.unittesting; + +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; + +public class MainActivity extends AppCompatActivity +{ + + @Override + protected void onCreate(Bundle savedInstanceState) + { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + } +} diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/res/drawable/ic_launcher_background.xml b/Software/Android_Studio/Tango.UnitTesting/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 000000000..1cd2a3665 --- /dev/null +++ b/Software/Android_Studio/Tango.UnitTesting/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/res/layout/activity_main.xml b/Software/Android_Studio/Tango.UnitTesting/src/main/res/layout/activity_main.xml new file mode 100644 index 000000000..22c2d005c --- /dev/null +++ b/Software/Android_Studio/Tango.UnitTesting/src/main/res/layout/activity_main.xml @@ -0,0 +1,18 @@ + + + + + + diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 000000000..00f9eaaf3 --- /dev/null +++ b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 000000000..00f9eaaf3 --- /dev/null +++ b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-hdpi/ic_launcher.png b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..550730310 Binary files /dev/null and b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-hdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..4e526c95b Binary files /dev/null and b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-hdpi/ic_launcher_round.png b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 000000000..8fab6a3a5 Binary files /dev/null and b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-mdpi/ic_launcher.png b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..6bc7fcd6f Binary files /dev/null and b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-mdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..2c38c7190 Binary files /dev/null and b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-mdpi/ic_launcher_round.png b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 000000000..1eecc0e7d Binary files /dev/null and b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xhdpi/ic_launcher.png b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..ec87dcebe Binary files /dev/null and b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..072467eaa Binary files /dev/null and b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 000000000..05ca079ca Binary files /dev/null and b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxhdpi/ic_launcher.png b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..6f67f21ba Binary files /dev/null and b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..78a6b7a34 Binary files /dev/null and b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 000000000..8bac0f274 Binary files /dev/null and b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..0327e13fa Binary files /dev/null and b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..68ebe33fe Binary files /dev/null and b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 000000000..bacd3e758 Binary files /dev/null and b/Software/Android_Studio/Tango.UnitTesting/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/res/values/colors.xml b/Software/Android_Studio/Tango.UnitTesting/src/main/res/values/colors.xml new file mode 100644 index 000000000..3ab3e9cbc --- /dev/null +++ b/Software/Android_Studio/Tango.UnitTesting/src/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #3F51B5 + #303F9F + #FF4081 + diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/res/values/strings.xml b/Software/Android_Studio/Tango.UnitTesting/src/main/res/values/strings.xml new file mode 100644 index 000000000..76b425acf --- /dev/null +++ b/Software/Android_Studio/Tango.UnitTesting/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + Tango.UnitTesting + diff --git a/Software/Android_Studio/Tango.UnitTesting/src/main/res/values/styles.xml b/Software/Android_Studio/Tango.UnitTesting/src/main/res/values/styles.xml new file mode 100644 index 000000000..5885930df --- /dev/null +++ b/Software/Android_Studio/Tango.UnitTesting/src/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/Software/Android_Studio/Tango.UnitTesting/src/test/java/com/twine/tango/unittesting/ExampleUnitTest.java b/Software/Android_Studio/Tango.UnitTesting/src/test/java/com/twine/tango/unittesting/ExampleUnitTest.java new file mode 100644 index 000000000..9c8cf8626 --- /dev/null +++ b/Software/Android_Studio/Tango.UnitTesting/src/test/java/com/twine/tango/unittesting/ExampleUnitTest.java @@ -0,0 +1,19 @@ +package com.twine.tango.unittesting; + +import org.junit.Test; + +import static org.junit.Assert.*; + +/** + * Example local unit test, which will execute on the development machine (host). + * + * @see Testing documentation + */ +public class ExampleUnitTest +{ + @Test + public void addition_isCorrect() throws Exception + { + assertEquals(4, 2 + 2); + } +} \ No newline at end of file -- cgit v1.3.1