Skip to content

Commit 2a98185

Browse files
authored
Merge pull request #30 from isa-group/feat/pom
Changes in `pom.xml`
2 parents a221886 + 46bba35 commit 2a98185

3 files changed

Lines changed: 33 additions & 7 deletions

File tree

pom.xml

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<name>${project.groupId}:${project.artifactId}</name>
1313
<description>A pricing driven feature toggling library for java</description>
14-
<url>https://github.com/Alex-GF/pricingplans-4j</url>
14+
<url>https://github.com/isa-group/Pricing4Java</url>
1515
<packaging>jar</packaging>
1616

1717
<licenses>
@@ -164,7 +164,7 @@
164164
<dependency>
165165
<groupId>org.yaml</groupId>
166166
<artifactId>snakeyaml</artifactId>
167-
<version>1.33</version>
167+
<version>2.3</version>
168168
</dependency>
169169

170170
<!-- API, java.xml.bind module -->
@@ -190,6 +190,7 @@
190190
<plugin>
191191
<groupId>org.apache.maven.plugins</groupId>
192192
<artifactId>maven-gpg-plugin</artifactId>
193+
<version>3.2.7</version>
193194
<executions>
194195
<execution>
195196
<id>sign-artifacts</id>
@@ -225,9 +226,32 @@
225226
</dependencies>
226227
</plugin>
227228
<plugin>
228-
<groupId>org.apache.maven.plugins</groupId>
229229
<artifactId>maven-surefire-plugin</artifactId>
230-
<version>3.2.5</version>
230+
<version>3.5.2</version>
231+
<dependencies>
232+
<dependency>
233+
<groupId>me.fabriciorby</groupId>
234+
<artifactId>maven-surefire-junit5-tree-reporter</artifactId>
235+
<version>1.4.0</version>
236+
</dependency>
237+
</dependencies>
238+
<configuration>
239+
<reportFormat>plain</reportFormat>
240+
<consoleOutputReporter>
241+
<disable>true</disable>
242+
</consoleOutputReporter>
243+
<statelessTestsetInfoReporter
244+
implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoTreeReporter">
245+
<printStacktraceOnError>true</printStacktraceOnError>
246+
<printStacktraceOnFailure>true</printStacktraceOnFailure>
247+
<printStdoutOnError>true</printStdoutOnError>
248+
<printStdoutOnFailure>true</printStdoutOnFailure>
249+
<printStdoutOnSuccess>false</printStdoutOnSuccess>
250+
<printStderrOnError>true</printStderrOnError>
251+
<printStderrOnFailure>true</printStderrOnFailure>
252+
<printStderrOnSuccess>false</printStderrOnSuccess>
253+
</statelessTestsetInfoReporter>
254+
</configuration>
231255
</plugin>
232256
<plugin>
233257
<groupId>org.apache.maven.plugins</groupId>
@@ -258,7 +282,7 @@
258282
<plugin>
259283
<groupId>org.jacoco</groupId>
260284
<artifactId>jacoco-maven-plugin</artifactId>
261-
<version>0.8.11</version>
285+
<version>0.8.12</version>
262286
<executions>
263287
<execution>
264288
<goals>

src/main/java/io/github/isagroup/services/parsing/PricingManagerParser.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ private static void setBasicAttributes(Map<String, Object> yamlConfigMap, Pricin
204204
}
205205

206206
pricingManager.setBilling(parsedBilling);
207+
}else{
208+
Map<String, Double> billingMap = new LinkedHashMap<>();
209+
billingMap.put("monthly", 1.0);
210+
pricingManager.setBilling(billingMap);
207211
}
208212

209213
}

src/test/java/io/github/isagroup/parsing/positive/PricingManagerParserTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ void givenAMapOfBillingShouldParseIt() {
4040

4141
@Test
4242
@DisplayName(value = "Given no 'billing' by default should set a 'monthly: 1'")
43-
@Disabled
4443
void givenNoBillingADefaultMonthlyValueShouldBeSet() {
4544

4645
PricingManager pricingManager = YamlUtils.retrieveManagerFromYaml(TEST_CASES + "billing/no-billing-set.yml");
@@ -51,7 +50,6 @@ void givenNoBillingADefaultMonthlyValueShouldBeSet() {
5150

5251
@Test
5352
@DisplayName(value = "Given a single entry in 'billing' map should parse it")
54-
@Disabled
5553
void givenBillingOneEntryShouldParse() {
5654

5755
PricingManager pricingManager = YamlUtils

0 commit comments

Comments
 (0)