Skip to content

Commit 022f12f

Browse files
committed
Use PicoContainer for DI in Android Cukelator example. POM renames.
1 parent 17532c9 commit 022f12f

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

examples/android/cukeulator-test/pom.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<version>1.1.5-SNAPSHOT</version>
1111
</parent>
1212

13-
<artifactId>android-example-test</artifactId>
13+
<artifactId>cukelator-test</artifactId>
1414
<packaging>apk</packaging>
1515
<name>Examples: Android Cukeulator Test</name>
1616

@@ -27,18 +27,18 @@
2727
</dependency>
2828
<dependency>
2929
<groupId>info.cukes</groupId>
30-
<artifactId>cucumber-java</artifactId>
30+
<artifactId>cucumber-picocontainer</artifactId>
3131
</dependency>
3232
<dependency>
3333
<groupId>info.cukes.android-examples</groupId>
34-
<artifactId>android-example</artifactId>
34+
<artifactId>cukelator</artifactId>
3535
<version>${project.version}</version>
3636
<scope>provided</scope>
3737
</dependency>
3838
<!-- declare apk dependency for android:deploy-dependencies target -->
3939
<dependency>
4040
<groupId>info.cukes.android-examples</groupId>
41-
<artifactId>android-example</artifactId>
41+
<artifactId>cukelator</artifactId>
4242
<version>${project.version}</version>
4343
<scope>provided</scope>
4444
<type>apk</type>

examples/android/cukeulator-test/src/cucumber/example/android/cukeulator/test/CalculatorActivitySteps.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import android.test.ActivityInstrumentationTestCase2;
44
import android.widget.TextView;
55
import cucumber.api.CucumberOptions;
6-
import cucumber.api.java.After;
7-
import cucumber.api.java.Before;
86
import cucumber.api.java.en.Given;
97
import cucumber.api.java.en.Then;
108
import cucumber.api.java.en.When;
@@ -32,8 +30,9 @@
3230
@CucumberOptions(features = "features")
3331
public class CalculatorActivitySteps extends ActivityInstrumentationTestCase2<CalculatorActivity> {
3432

35-
public CalculatorActivitySteps() {
33+
public CalculatorActivitySteps(SomeDependency dependency) {
3634
super(CalculatorActivity.class);
35+
assertNotNull(dependency);
3736
}
3837

3938
@Given("^I have a CalculatorActivity$")

examples/android/cukeulator/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<version>1.1.5-SNAPSHOT</version>
1111
</parent>
1212

13-
<artifactId>android-example</artifactId>
13+
<artifactId>cukelator</artifactId>
1414
<packaging>apk</packaging>
1515
<name>Examples: Android Cukeulator</name>
1616

0 commit comments

Comments
 (0)