Skip to content

Commit c2ed962

Browse files
committed
CO_1.1.0, test apache#3 completed
1 parent 43f4206 commit c2ed962

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

openjpa-lib/src/test/java/org/apache/openjpa/lib/util/ConfigurationsIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ private static Stream<Arguments> configureInstanceITArguments() {
8787
if (!state.successful)
8888
if (("pitest".equals(envFlag) || "onlySuccess".equals(envFlag)))
8989
continue;
90-
if (state.description.contains("#02"))
90+
if (true || state.description.contains("#02"))
9191
activeArguments.add(Arguments.of(state));
9292
}
9393

openjpa-lib/src/test/java/org/apache/openjpa/lib/util/ConfigurationsITClasses.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,18 @@ public void setFirst(int first) {
3535
this.first = first;
3636
}
3737
}
38+
39+
public static class Deepest123 extends DeepestBase {
40+
public void setFirst(int first) {
41+
this.first = first;
42+
}
43+
44+
public void setSecond(int second) {
45+
this.second = second;
46+
}
47+
48+
public void setThird(int third) {
49+
this.third = third;
50+
}
51+
}
3852
}

openjpa-lib/src/test/java/org/apache/openjpa/lib/util/ConfigurationsITConfigurer.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import org.apache.openjpa.lib.util.ConfigurationsIT.A2_NUMBER_OF_SETTABLE_PROPERTIES;
55
import org.apache.openjpa.lib.util.ConfigurationsIT.TestState;
66
import org.apache.openjpa.lib.util.ConfigurationsITClasses.Deepest1;
7+
import org.apache.openjpa.lib.util.ConfigurationsITClasses.Deepest123;
78

89
import java.util.Properties;
910

@@ -25,15 +26,18 @@ public void configure() {
2526
return;
2627
}
2728

29+
assert testState.a1 == A1_EXCEPTION.NO;
30+
2831
testState.properties.setProperty("first", "1");
2932
testState.properties.setProperty("second", "2");
3033
testState.properties.setProperty("third", "3");
3134

3235
/* Configure the case in which too few properties are set */
33-
if (testState.a1 == A1_EXCEPTION.NO &&
34-
testState.a2 == A2_NUMBER_OF_SETTABLE_PROPERTIES.LESS_THAN_PROPERTIES_SIZE_MINUS_1) {
36+
if (testState.a2 == A2_NUMBER_OF_SETTABLE_PROPERTIES.LESS_THAN_PROPERTIES_SIZE_MINUS_1) {
3537
testState.obj = new Deepest1();
36-
38+
return;
39+
} else if (testState.a2 == A2_NUMBER_OF_SETTABLE_PROPERTIES.EQUAL_AS_PROPERTIES_SIZE) {
40+
testState.obj = new Deepest123();
3741
return;
3842
}
3943

0 commit comments

Comments
 (0)