From bd85440c99a07cbccae24e0fab2aff948df7030c Mon Sep 17 00:00:00 2001 From: Sergey Solovyev Date: Tue, 18 Jun 2013 23:51:35 +0400 Subject: [PATCH] forked tests --- .../calculator/TestCalculatorApplication.java | 21 +++++++++++++++++++ pom.xml | 5 ++--- 2 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 android-app/src/test/java/org/solovyev/android/calculator/TestCalculatorApplication.java diff --git a/android-app/src/test/java/org/solovyev/android/calculator/TestCalculatorApplication.java b/android-app/src/test/java/org/solovyev/android/calculator/TestCalculatorApplication.java new file mode 100644 index 00000000..941b15c9 --- /dev/null +++ b/android-app/src/test/java/org/solovyev/android/calculator/TestCalculatorApplication.java @@ -0,0 +1,21 @@ +package org.solovyev.android.calculator; + +/** + * User: serso + * Date: 6/18/13 + * Time: 8:45 PM + */ +public class TestCalculatorApplication extends CalculatorApplication { + + private static volatile boolean initialized = false; + + @Override + public void onCreate() { + synchronized (TestCalculatorApplication.class) { + if (!initialized) { + super.onCreate(); + initialized = true; + } + } + } +} diff --git a/pom.xml b/pom.xml index d1d2065e..04e47e79 100644 --- a/pom.xml +++ b/pom.xml @@ -265,9 +265,8 @@ maven-surefire-plugin 2.15 - classes - 1 - false + 10 + true