Skip to content

Commit aa62496

Browse files
authored
Fix running tests once (#1265)
1 parent a4b8436 commit aa62496

File tree

17 files changed

+465
-465
lines changed

17 files changed

+465
-465
lines changed

fixture-monkey-api/src/test/java/com/navercorp/fixturemonkey/api/arbitrary/MonkeyStringArbitraryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void koreanShouldGenerateOnlyKoreanCharacters() {
4040
then(sample.chars().allMatch(ch -> ch >= '가' && ch <= '힣')).isTrue();
4141
}
4242

43-
@Property(tries = 100)
43+
@Property(tries = 1)
4444
void koreanShouldAlwaysGenerateStringsWithinKoreanCharacterRange(
4545
@ForAll @Size(min = 1, max = 50) String ignored
4646
) {

fixture-monkey-api/src/test/java/com/navercorp/fixturemonkey/api/property/PropertyNameResolverTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import net.jqwik.api.Property;
3030

3131
class PropertyNameResolverTests {
32-
@Property
32+
@Property(tries = 1)
3333
void identityPropertyNameResolver(@ForAll String name) {
3434
PropertyNameResolver sut = PropertyNameResolver.IDENTITY;
3535
com.navercorp.fixturemonkey.api.property.Property property = getNameProperty(name);

fixture-monkey-jackson/src/test/java/com/navercorp/fixturemonkey/test/FixtureMonkeyExpressionGeneratorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import static org.assertj.core.api.BDDAssertions.then;
2222

23-
import net.jqwik.api.Property;
23+
import net.jqwik.api.Example;
2424

2525
import com.fasterxml.jackson.annotation.JsonProperty;
2626

@@ -38,7 +38,7 @@ public class FixtureMonkeyExpressionGeneratorTest {
3838
private static final PropertyGenerator DEFAULT_PROPERTY_GENERATOR = new DefaultPropertyGenerator();
3939

4040
@SuppressWarnings("OptionalGetWithoutIsPresent")
41-
@Property
41+
@Example
4242
void setJsonPropertyWithExpressionGenerator() {
4343
// given
4444
FixtureMonkey sut = FixtureMonkey.builder()

fixture-monkey-jackson/src/test/java/com/navercorp/fixturemonkey/test/FixtureMonkeyJacksonTest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import java.util.Map;
3434
import java.util.stream.Collectors;
3535

36-
import net.jqwik.api.Property;
36+
import net.jqwik.api.Example;
3737

3838
import com.fasterxml.jackson.annotation.JsonFormat;
3939
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
@@ -52,26 +52,26 @@ class FixtureMonkeyJacksonTest {
5252
.defaultNotNull(true)
5353
.build();
5454

55-
@Property
55+
@Example
5656
void jsonFormat() {
5757
thenNoException().isThrownBy(() -> SUT.giveMeOne(JsonFormatSpec.class));
5858
}
5959

60-
@Property
60+
@Example
6161
void jsonNode() {
6262
JsonNodeWrapperClass actual = SUT.giveMeOne(JsonNodeWrapperClass.class);
6363

6464
then(actual).isNotNull();
6565
then(actual.value).isNotNull();
6666
}
6767

68-
@Property
68+
@Example
6969
void sampleNested() {
7070
thenNoException()
7171
.isThrownBy(() -> SUT.giveMeOne(NestedStringValue.class));
7272
}
7373

74-
@Property
74+
@Example
7575
void sampleGenericObject() {
7676
StringValue actual = SUT.giveMeOne(new TypeReference<GenericObject<StringValue>>() {
7777
})
@@ -81,7 +81,7 @@ void sampleGenericObject() {
8181
then(actual).isNotNull();
8282
}
8383

84-
@Property
84+
@Example
8585
void sampleListNestedElement() {
8686
StringValue actual = SUT.giveMeBuilder(new TypeReference<List<List<StringValue>>>() {
8787
})
@@ -95,7 +95,7 @@ void sampleListNestedElement() {
9595
then(actual).isNotNull();
9696
}
9797

98-
@Property
98+
@Example
9999
void sampleMapNestedListValue() {
100100
StringValue actual = SUT.giveMeBuilder(new TypeReference<Map<String, List<StringValue>>>() {
101101
})
@@ -114,7 +114,7 @@ void sampleMapNestedListValue() {
114114
then(actual).isNotNull();
115115
}
116116

117-
@Property
117+
@Example
118118
void sampleGenericArray() {
119119
StringValue actual = SUT.giveMeBuilder(new TypeReference<StringValue[][]>() {
120120
})

0 commit comments

Comments
 (0)