From 35ee73b84bc8cb2a2c7d655debb886ceabf39ec2 Mon Sep 17 00:00:00 2001 From: serso Date: Wed, 21 Jan 2015 14:44:05 +0100 Subject: [PATCH] Test modules --- .gitignore | 3 +- .idea/encodings.xml | 6 +- .idea/gradle.xml | 2 + .idea/modules.xml | 2 + .../android-app-core-tests.iml | 112 ++++++++++ android-app-core-tests/build.gradle | 49 +++++ .../calculator/CalculatorBroadcasterTest.java | 9 +- .../calculator/CalculatorReceiverTest.java | 10 +- .../calculator/CalculatorTestUtils.java | 7 +- .../calculator/view/AngleUnitsButtonTest.java | 17 +- .../view/NumeralBasesButtonTest.java | 18 +- android-app-core/android-app-core.iml | 3 +- android-app-core/build.gradle | 4 + .../src/main/assets/Roboto-Regular.ttf | Bin 114976 -> 0 bytes .../src/main/assets/fonts/Roboto-Regular.ttf | Bin 0 -> 101264 bytes android-app-onscreen/android-app-onscreen.iml | 3 +- android-app-onscreen/build.gradle | 3 + android-app-tests/android-app-tests.iml | 112 ++++++++++ android-app-tests/build.gradle | 52 +++++ .../android/AndroidNumeralBaseTest.java | 194 +++++++++--------- .../android/CalculatorTestRunner.java | 27 +++ .../AndroidCalculatorEditorViewTest.java | 18 +- .../calculator/CalculatorTestUtils.java | 0 .../calculator/TextHighlighterTest.java | 0 .../calculator/history/HistoryUtilsTest.java | 0 .../android/calculator/model/VarTest.java | 0 .../plot/CalculatorGraph2dViewTest.java | 4 +- .../wizard/CalculatorWizardActivityTest.java | 12 +- .../wizard/CalculatorWizardTest.java | 8 +- .../OnScreenCalculatorWizardStepTest.java | 12 +- .../calculator/wizard/WizardStepTest.java | 8 +- android-app-widget/android-app-widget.iml | 3 +- android-app-widget/build.gradle | 3 + android-app/android-app.iml | 4 +- android-app/build.gradle | 6 +- android-app/proguard.cfg | 2 + .../calculator/CalculatorApplication.java | 4 +- .../history/AndroidCalculatorHistory.java | 11 +- .../calculator/TestCalculatorApplication.java | 47 ----- .../calculator/matrix/MatrixViewTest.java | 9 - settings.gradle | 1 + 41 files changed, 534 insertions(+), 251 deletions(-) create mode 100644 android-app-core-tests/android-app-core-tests.iml create mode 100644 android-app-core-tests/build.gradle rename {android-app-core/src/main/test => android-app-core-tests/src/test/java}/org/solovyev/android/calculator/CalculatorBroadcasterTest.java (91%) rename {android-app-core/src/main/test => android-app-core-tests/src/test/java}/org/solovyev/android/calculator/CalculatorReceiverTest.java (79%) rename {android-app-core/src/main/test => android-app-core-tests/src/test/java}/org/solovyev/android/calculator/CalculatorTestUtils.java (99%) rename {android-app-core/src/main/test => android-app-core-tests/src/test/java}/org/solovyev/android/calculator/view/AngleUnitsButtonTest.java (85%) rename {android-app-core/src/main/test => android-app-core-tests/src/test/java}/org/solovyev/android/calculator/view/NumeralBasesButtonTest.java (84%) delete mode 100644 android-app-core/src/main/assets/Roboto-Regular.ttf create mode 100644 android-app-core/src/main/assets/fonts/Roboto-Regular.ttf create mode 100644 android-app-tests/android-app-tests.iml create mode 100644 android-app-tests/build.gradle rename {android-app => android-app-tests}/src/test/java/org/solovyev/android/AndroidNumeralBaseTest.java (97%) create mode 100644 android-app-tests/src/test/java/org/solovyev/android/CalculatorTestRunner.java rename {android-app => android-app-tests}/src/test/java/org/solovyev/android/calculator/AndroidCalculatorEditorViewTest.java (96%) rename {android-app => android-app-tests}/src/test/java/org/solovyev/android/calculator/CalculatorTestUtils.java (100%) rename {android-app => android-app-tests}/src/test/java/org/solovyev/android/calculator/TextHighlighterTest.java (100%) rename {android-app => android-app-tests}/src/test/java/org/solovyev/android/calculator/history/HistoryUtilsTest.java (100%) rename {android-app => android-app-tests}/src/test/java/org/solovyev/android/calculator/model/VarTest.java (100%) rename {android-app => android-app-tests}/src/test/java/org/solovyev/android/calculator/plot/CalculatorGraph2dViewTest.java (100%) rename {android-app => android-app-tests}/src/test/java/org/solovyev/android/calculator/wizard/CalculatorWizardActivityTest.java (95%) rename {android-app => android-app-tests}/src/test/java/org/solovyev/android/calculator/wizard/CalculatorWizardTest.java (90%) rename {android-app => android-app-tests}/src/test/java/org/solovyev/android/calculator/wizard/OnScreenCalculatorWizardStepTest.java (94%) rename {android-app => android-app-tests}/src/test/java/org/solovyev/android/calculator/wizard/WizardStepTest.java (95%) delete mode 100644 android-app/src/test/java/org/solovyev/android/calculator/TestCalculatorApplication.java delete mode 100644 android-app/src/test/java/org/solovyev/android/calculator/matrix/MatrixViewTest.java diff --git a/.gitignore b/.gitignore index df233383..735eba38 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ atlassian-ide-plugin.xml .idea/workspace.xml .idea/tasks.xml .idea/uiDesigner.xml -.idea/libraries/ \ No newline at end of file +.idea/libraries/ +**/build \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml index d8210482..0d832da5 100644 --- a/.idea/encodings.xml +++ b/.idea/encodings.xml @@ -1,4 +1,8 @@ - + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index a2444c19..a6784935 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -12,7 +12,9 @@