org.mapstruct
@@ -881,6 +881,9 @@
+ 1.8
+ 1.8
+ 1.0.0
-Djava.security.egd=file:/dev/./urandom -Xmx256m
3.6.2
2.0.0
diff --git a/jhipster/jhipster-uaa/gateway/pom.xml b/jhipster/jhipster-uaa/gateway/pom.xml
index 0f815bedad..1b85877a9b 100644
--- a/jhipster/jhipster-uaa/gateway/pom.xml
+++ b/jhipster/jhipster-uaa/gateway/pom.xml
@@ -236,7 +236,7 @@
org.zalando
problem-spring-web
- 0.24.0-RC.0
+ ${spring.web.version}
org.springframework.security.oauth
@@ -559,7 +559,7 @@
org.eclipse.m2e
lifecycle-mapping
- 1.0.0
+ ${lifecycle.mapping.version}
@@ -1012,6 +1012,8 @@
+ 1.0.0
+ 0.24.0-RC.0
3.0.0
1.8
diff --git a/jhipster/jhipster-uaa/uaa/pom.xml b/jhipster/jhipster-uaa/uaa/pom.xml
index 2c4dd9d0f0..27a056820d 100644
--- a/jhipster/jhipster-uaa/uaa/pom.xml
+++ b/jhipster/jhipster-uaa/uaa/pom.xml
@@ -232,7 +232,7 @@
org.zalando
problem-spring-web
- 0.24.0-RC.0
+ ${spring.web.version}
org.springframework.security.oauth
@@ -543,7 +543,7 @@
org.eclipse.m2e
lifecycle-mapping
- 1.0.0
+ ${lifecycle.mapping.version}
@@ -834,6 +834,8 @@
+ 1.0.0
+ 0.24.0-RC.0
3.0.0
1.8
diff --git a/json-2/README.md b/json-2/README.md
new file mode 100644
index 0000000000..e7c3043339
--- /dev/null
+++ b/json-2/README.md
@@ -0,0 +1,5 @@
+## JSON
+
+This module contains articles about JSON.
+
+### Relevant Articles:
diff --git a/json-2/pom.xml b/json-2/pom.xml
new file mode 100644
index 0000000000..72b3295b2b
--- /dev/null
+++ b/json-2/pom.xml
@@ -0,0 +1,41 @@
+
+
+ com.baeldung
+ json-2
+ 0.0.1-SNAPSHOT
+
+
+ parent-modules
+ com.baeldung
+ 1.0.0-SNAPSHOT
+
+ 4.0.0
+
+
+
+ com.jsoniter
+ jsoniter
+ ${jsoniter.version}
+
+
+
+ junit
+ junit
+ ${junit.version}
+ test
+
+
+
+ org.assertj
+ assertj-core
+ ${assertj-core.version}
+ test
+
+
+
+ 0.9.23
+ 3.11.1
+
+
diff --git a/json-2/src/main/java/com/baeldung/jsoniter/model/Name.java b/json-2/src/main/java/com/baeldung/jsoniter/model/Name.java
new file mode 100644
index 0000000000..ed5e221235
--- /dev/null
+++ b/json-2/src/main/java/com/baeldung/jsoniter/model/Name.java
@@ -0,0 +1,22 @@
+package com.baeldung.jsoniter.model;
+
+public class Name {
+ private String firstName;
+ private String surname;
+
+ public String getFirstName() {
+ return firstName;
+ }
+
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ public String getSurname() {
+ return surname;
+ }
+
+ public void setSurname(String surname) {
+ this.surname = surname;
+ }
+}
diff --git a/json-2/src/main/java/com/baeldung/jsoniter/model/Student.java b/json-2/src/main/java/com/baeldung/jsoniter/model/Student.java
new file mode 100644
index 0000000000..07c73dd18e
--- /dev/null
+++ b/json-2/src/main/java/com/baeldung/jsoniter/model/Student.java
@@ -0,0 +1,26 @@
+package com.baeldung.jsoniter.model;
+
+import com.jsoniter.annotation.JsonProperty;
+import com.jsoniter.fuzzy.MaybeStringIntDecoder;
+
+public class Student {
+ @JsonProperty(decoder = MaybeStringIntDecoder.class)
+ private int id;
+ private Name name;
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public Name getName() {
+ return name;
+ }
+
+ public void setName(Name name) {
+ this.name = name;
+ }
+}
diff --git a/json-2/src/test/java/com/baeldung/jsoniter/JsoniterIntroUnitTest.java b/json-2/src/test/java/com/baeldung/jsoniter/JsoniterIntroUnitTest.java
new file mode 100644
index 0000000000..09f82567a2
--- /dev/null
+++ b/json-2/src/test/java/com/baeldung/jsoniter/JsoniterIntroUnitTest.java
@@ -0,0 +1,85 @@
+package com.baeldung.jsoniter;
+
+import com.baeldung.jsoniter.model.Name;
+import com.baeldung.jsoniter.model.Student;
+import com.jsoniter.JsonIterator;
+import com.jsoniter.ValueType;
+import com.jsoniter.any.Any;
+
+import org.junit.Test;
+
+import static com.jsoniter.ValueType.STRING;
+import static org.assertj.core.api.Assertions.assertThat;
+
+public class JsoniterIntroUnitTest {
+
+ @Test
+ public void whenParsedUsingBindAPI_thenConvertedToJavaObjectCorrectly() {
+ String input = "{\"id\":1,\"name\":{\"firstName\":\"Joe\",\"surname\":\"Blogg\"}}";
+
+ Student student = JsonIterator.deserialize(input, Student.class);
+
+ assertThat(student.getId()).isEqualTo(1);
+ assertThat(student.getName().getFirstName()).isEqualTo("Joe");
+ assertThat(student.getName().getSurname()).isEqualTo("Blogg");
+ }
+
+ @Test
+ public void givenTypeInJsonFuzzy_whenFieldIsMaybeDecoded_thenFieldParsedCorrectly() {
+ String input = "{\"id\":\"1\",\"name\":{\"firstName\":\"Joe\",\"surname\":\"Blogg\"}}";
+
+ Student student = JsonIterator.deserialize(input, Student.class);
+
+ assertThat(student.getId()).isEqualTo(1);
+ }
+
+ @Test
+ public void whenParsedUsingAnyAPI_thenFieldValueCanBeExtractedUsingTheFieldName() {
+ String input = "{\"id\":1,\"name\":{\"firstName\":\"Joe\",\"surname\":\"Blogg\"}}";
+
+ Any any = JsonIterator.deserialize(input);
+
+ assertThat(any.toInt("id")).isEqualTo(1);
+ assertThat(any.toString("name", "firstName")).isEqualTo("Joe");
+ assertThat(any.toString("name", "surname")).isEqualTo("Blogg");
+ }
+
+ @Test
+ public void whenParsedUsingAnyAPI_thenFieldValueTypeIsCorrect() {
+ String input = "{\"id\":1,\"name\":{\"firstName\":\"Joe\",\"surname\":\"Blogg\"}}";
+
+ Any any = JsonIterator.deserialize(input);
+
+ assertThat(any.get("id").valueType()).isEqualTo(ValueType.NUMBER);
+ assertThat(any.get("name").valueType()).isEqualTo(ValueType.OBJECT);
+ assertThat(any.get("error").valueType()).isEqualTo(ValueType.INVALID);
+ }
+
+ @Test
+ public void whenParsedUsingIteratorAPI_thenFieldValuesExtractedCorrectly() throws Exception {
+ Name name = new Name();
+ String input = "{ \"firstName\" : \"Joe\", \"surname\" : \"Blogg\" }";
+ JsonIterator iterator = JsonIterator.parse(input);
+
+ for (String field = iterator.readObject(); field != null; field = iterator.readObject()) {
+ switch (field) {
+ case "firstName":
+ if (iterator.whatIsNext() == ValueType.STRING) {
+ name.setFirstName(iterator.readString());
+ }
+ continue;
+ case "surname":
+ if (iterator.whatIsNext() == ValueType.STRING) {
+ name.setSurname(iterator.readString());
+ }
+ continue;
+ default:
+ iterator.skip();
+ }
+ }
+
+ assertThat(name.getFirstName()).isEqualTo("Joe");
+ assertThat(name.getSurname()).isEqualTo("Blogg");
+ }
+
+}
diff --git a/json-2/src/test/resources/Student.json b/json-2/src/test/resources/Student.json
new file mode 100644
index 0000000000..7ff3351e8e
--- /dev/null
+++ b/json-2/src/test/resources/Student.json
@@ -0,0 +1 @@
+{"id":1,"name":{"firstName": "Joe", "surname":"Blogg"}}
diff --git a/kotlin-libraries-2/README.md b/kotlin-libraries-2/README.md
index 4064ef67d8..f725048acd 100644
--- a/kotlin-libraries-2/README.md
+++ b/kotlin-libraries-2/README.md
@@ -8,4 +8,7 @@ This module contains articles about Kotlin Libraries.
- [Introduction to RxKotlin](https://www.baeldung.com/rxkotlin)
- [MockK: A Mocking Library for Kotlin](https://www.baeldung.com/kotlin-mockk)
- [Kotlin Immutable Collections](https://www.baeldung.com/kotlin-immutable-collections)
+- [Dependency Injection for Kotlin with Injekt](https://www.baeldung.com/kotlin-dependency-injection-with-injekt)
+- [Fuel HTTP Library with Kotlin](https://www.baeldung.com/kotlin-fuel)
+- [Introduction to Kovenant Library for Kotlin](https://www.baeldung.com/kotlin-kovenant)
- More articles: [[<-- prev]](/kotlin-libraries)
diff --git a/kotlin-libraries-2/pom.xml b/kotlin-libraries-2/pom.xml
index 518142403e..27dc91d156 100644
--- a/kotlin-libraries-2/pom.xml
+++ b/kotlin-libraries-2/pom.xml
@@ -39,6 +39,37 @@
kotlinx-collections-immutable
${kotlinx-collections-immutable.version}
+
+ uy.kohesive.injekt
+ injekt-core
+ ${injekt-core.version}
+
+
+ com.github.kittinunf.fuel
+ fuel
+ ${fuel.version}
+
+
+ com.github.kittinunf.fuel
+ fuel-gson
+ ${fuel.version}
+
+
+ com.github.kittinunf.fuel
+ fuel-rxjava
+ ${fuel.version}
+
+
+ com.github.kittinunf.fuel
+ fuel-coroutines
+ ${fuel.version}
+
+
+ nl.komponents.kovenant
+ kovenant
+ ${kovenant.version}
+ pom
+
io.mockk
@@ -49,6 +80,9 @@
+ 1.16.1
+ 1.15.0
+ 3.3.0
27.1-jre
1.9.3
0.1
diff --git a/core-kotlin/src/main/kotlin/com/baeldung/fuel/Interceptors.kt b/kotlin-libraries-2/src/main/kotlin/com/baeldung/fuel/Interceptors.kt
similarity index 100%
rename from core-kotlin/src/main/kotlin/com/baeldung/fuel/Interceptors.kt
rename to kotlin-libraries-2/src/main/kotlin/com/baeldung/fuel/Interceptors.kt
diff --git a/core-kotlin/src/main/kotlin/com/baeldung/fuel/Post.kt b/kotlin-libraries-2/src/main/kotlin/com/baeldung/fuel/Post.kt
similarity index 100%
rename from core-kotlin/src/main/kotlin/com/baeldung/fuel/Post.kt
rename to kotlin-libraries-2/src/main/kotlin/com/baeldung/fuel/Post.kt
diff --git a/core-kotlin/src/main/kotlin/com/baeldung/fuel/PostRoutingAPI.kt b/kotlin-libraries-2/src/main/kotlin/com/baeldung/fuel/PostRoutingAPI.kt
similarity index 100%
rename from core-kotlin/src/main/kotlin/com/baeldung/fuel/PostRoutingAPI.kt
rename to kotlin-libraries-2/src/main/kotlin/com/baeldung/fuel/PostRoutingAPI.kt
diff --git a/core-kotlin/src/main/kotlin/com/baeldung/injekt/DelegateInjectionApplication.kt b/kotlin-libraries-2/src/main/kotlin/com/baeldung/injekt/DelegateInjectionApplication.kt
similarity index 100%
rename from core-kotlin/src/main/kotlin/com/baeldung/injekt/DelegateInjectionApplication.kt
rename to kotlin-libraries-2/src/main/kotlin/com/baeldung/injekt/DelegateInjectionApplication.kt
diff --git a/core-kotlin/src/main/kotlin/com/baeldung/injekt/KeyedApplication.kt b/kotlin-libraries-2/src/main/kotlin/com/baeldung/injekt/KeyedApplication.kt
similarity index 80%
rename from core-kotlin/src/main/kotlin/com/baeldung/injekt/KeyedApplication.kt
rename to kotlin-libraries-2/src/main/kotlin/com/baeldung/injekt/KeyedApplication.kt
index 744459b7fe..4205678981 100644
--- a/core-kotlin/src/main/kotlin/com/baeldung/injekt/KeyedApplication.kt
+++ b/kotlin-libraries-2/src/main/kotlin/com/baeldung/injekt/KeyedApplication.kt
@@ -1,8 +1,12 @@
package com.baeldung.injekt
import org.slf4j.LoggerFactory
-import uy.kohesive.injekt.*
-import uy.kohesive.injekt.api.*
+import uy.kohesive.injekt.Injekt
+import uy.kohesive.injekt.InjektMain
+import uy.kohesive.injekt.api.InjektRegistrar
+import uy.kohesive.injekt.api.addPerKeyFactory
+import uy.kohesive.injekt.api.addSingletonFactory
+import uy.kohesive.injekt.api.get
class KeyedApplication {
companion object : InjektMain() {
diff --git a/core-kotlin/src/main/kotlin/com/baeldung/injekt/ModularApplication.kt b/kotlin-libraries-2/src/main/kotlin/com/baeldung/injekt/ModularApplication.kt
similarity index 94%
rename from core-kotlin/src/main/kotlin/com/baeldung/injekt/ModularApplication.kt
rename to kotlin-libraries-2/src/main/kotlin/com/baeldung/injekt/ModularApplication.kt
index e802f3f6d5..96a0c9556a 100644
--- a/core-kotlin/src/main/kotlin/com/baeldung/injekt/ModularApplication.kt
+++ b/kotlin-libraries-2/src/main/kotlin/com/baeldung/injekt/ModularApplication.kt
@@ -1,7 +1,8 @@
package com.baeldung.injekt
import org.slf4j.LoggerFactory
-import uy.kohesive.injekt.*
+import uy.kohesive.injekt.Injekt
+import uy.kohesive.injekt.InjektMain
import uy.kohesive.injekt.api.*
class ModularApplication {
diff --git a/core-kotlin/src/main/kotlin/com/baeldung/injekt/PerThreadApplication.kt b/kotlin-libraries-2/src/main/kotlin/com/baeldung/injekt/PerThreadApplication.kt
similarity index 84%
rename from core-kotlin/src/main/kotlin/com/baeldung/injekt/PerThreadApplication.kt
rename to kotlin-libraries-2/src/main/kotlin/com/baeldung/injekt/PerThreadApplication.kt
index a42f314349..f3167bc223 100644
--- a/core-kotlin/src/main/kotlin/com/baeldung/injekt/PerThreadApplication.kt
+++ b/kotlin-libraries-2/src/main/kotlin/com/baeldung/injekt/PerThreadApplication.kt
@@ -1,8 +1,12 @@
package com.baeldung.injekt
import org.slf4j.LoggerFactory
-import uy.kohesive.injekt.*
-import uy.kohesive.injekt.api.*
+import uy.kohesive.injekt.Injekt
+import uy.kohesive.injekt.InjektMain
+import uy.kohesive.injekt.api.InjektRegistrar
+import uy.kohesive.injekt.api.addPerThreadFactory
+import uy.kohesive.injekt.api.addSingletonFactory
+import uy.kohesive.injekt.api.get
import java.util.*
import java.util.concurrent.Executors
import java.util.concurrent.TimeUnit
diff --git a/core-kotlin/src/main/kotlin/com/baeldung/injekt/SimpleApplication.kt b/kotlin-libraries-2/src/main/kotlin/com/baeldung/injekt/SimpleApplication.kt
similarity index 75%
rename from core-kotlin/src/main/kotlin/com/baeldung/injekt/SimpleApplication.kt
rename to kotlin-libraries-2/src/main/kotlin/com/baeldung/injekt/SimpleApplication.kt
index 2b07cd059f..5c2dc28ba5 100644
--- a/core-kotlin/src/main/kotlin/com/baeldung/injekt/SimpleApplication.kt
+++ b/kotlin-libraries-2/src/main/kotlin/com/baeldung/injekt/SimpleApplication.kt
@@ -1,8 +1,12 @@
package com.baeldung.injekt
import org.slf4j.LoggerFactory
-import uy.kohesive.injekt.*
-import uy.kohesive.injekt.api.*
+import uy.kohesive.injekt.Injekt
+import uy.kohesive.injekt.InjektMain
+import uy.kohesive.injekt.api.InjektRegistrar
+import uy.kohesive.injekt.api.addSingleton
+import uy.kohesive.injekt.api.addSingletonFactory
+import uy.kohesive.injekt.api.get
class SimpleApplication {
companion object : InjektMain() {
diff --git a/core-kotlin/src/test/kotlin/com/baeldung/fuel/FuelHttpUnitTest.kt b/kotlin-libraries-2/src/test/kotlin/com/baeldung/fuel/FuelHttpUnitTest.kt
similarity index 100%
rename from core-kotlin/src/test/kotlin/com/baeldung/fuel/FuelHttpUnitTest.kt
rename to kotlin-libraries-2/src/test/kotlin/com/baeldung/fuel/FuelHttpUnitTest.kt
diff --git a/core-kotlin/src/test/kotlin/com/baeldung/kotlin/KovenantTest.kt b/kotlin-libraries-2/src/test/kotlin/com/baeldung/kovenant/KovenantTest.kt
similarity index 99%
rename from core-kotlin/src/test/kotlin/com/baeldung/kotlin/KovenantTest.kt
rename to kotlin-libraries-2/src/test/kotlin/com/baeldung/kovenant/KovenantTest.kt
index 469118f0f6..046b7380f7 100644
--- a/core-kotlin/src/test/kotlin/com/baeldung/kotlin/KovenantTest.kt
+++ b/kotlin-libraries-2/src/test/kotlin/com/baeldung/kovenant/KovenantTest.kt
@@ -1,4 +1,4 @@
-package com.baeldung.kotlin
+package com.baeldung.kovenant
import nl.komponents.kovenant.*
import nl.komponents.kovenant.Kovenant.deferred
@@ -12,6 +12,7 @@ import java.util.*
import java.util.concurrent.TimeUnit
class KovenantTest {
+
@Before
fun setupTestMode() {
Kovenant.testMode { error ->
diff --git a/core-kotlin/src/test/kotlin/com/baeldung/kotlin/KovenantTimeoutTest.kt b/kotlin-libraries-2/src/test/kotlin/com/baeldung/kovenant/KovenantTimeoutTest.kt
similarity index 96%
rename from core-kotlin/src/test/kotlin/com/baeldung/kotlin/KovenantTimeoutTest.kt
rename to kotlin-libraries-2/src/test/kotlin/com/baeldung/kovenant/KovenantTimeoutTest.kt
index e37d2cc2fa..d98f9c538f 100644
--- a/core-kotlin/src/test/kotlin/com/baeldung/kotlin/KovenantTimeoutTest.kt
+++ b/kotlin-libraries-2/src/test/kotlin/com/baeldung/kovenant/KovenantTimeoutTest.kt
@@ -1,4 +1,4 @@
-package com.baeldung.kotlin
+package com.baeldung.kovenant
import nl.komponents.kovenant.Promise
import nl.komponents.kovenant.any
diff --git a/kotlin-libraries/README.md b/kotlin-libraries/README.md
index 99a57c8293..570bf9b1e5 100644
--- a/kotlin-libraries/README.md
+++ b/kotlin-libraries/README.md
@@ -10,7 +10,6 @@ This module contains articles about Kotlin Libraries.
- [Writing Specifications with Kotlin and Spek](https://www.baeldung.com/kotlin-spek)
- [Processing JSON with Kotlin and Klaxson](https://www.baeldung.com/kotlin-json-klaxson)
- [Guide to the Kotlin Exposed Framework](https://www.baeldung.com/kotlin-exposed-persistence)
-- [Working with Dates in Kotlin](https://www.baeldung.com/kotlin-dates)
- [Introduction to Arrow in Kotlin](https://www.baeldung.com/kotlin-arrow)
- [Kotlin with Ktor](https://www.baeldung.com/kotlin-ktor)
- [REST API With Kotlin and Kovert](https://www.baeldung.com/kotlin-kovert)
diff --git a/kotlin-libraries/pom.xml b/kotlin-libraries/pom.xml
index dfd1dc363f..0d6e589377 100644
--- a/kotlin-libraries/pom.xml
+++ b/kotlin-libraries/pom.xml
@@ -33,19 +33,19 @@
org.jetbrains.spek
spek-api
- 1.1.5
+ ${spek.version}
test
org.jetbrains.spek
spek-subject-extension
- 1.1.5
+ ${spek.version}
test
org.jetbrains.spek
spek-junit-platform-engine
- 1.1.5
+ ${spek.version}
test
@@ -166,6 +166,7 @@
2.6
2.3.0
0.7.3
+ 1.1.5
diff --git a/kotlin-quasar/pom.xml b/kotlin-quasar/pom.xml
index a12d27c565..f5fbce6ed7 100644
--- a/kotlin-quasar/pom.xml
+++ b/kotlin-quasar/pom.xml
@@ -103,7 +103,7 @@
maven-dependency-plugin
- 3.1.1
+ ${dependency.plugin.version}
getClasspathFilenames
@@ -116,7 +116,7 @@
org.apache.maven.plugins
maven-surefire-plugin
- 2.22.1
+ ${surefire.plugin.version}
-Dco.paralleluniverse.fibers.verifyInstrumentation=true
-javaagent:${co.paralleluniverse:quasar-core:jar}
@@ -125,7 +125,7 @@
org.codehaus.mojo
exec-maven-plugin
- 1.3.2
+ ${exec.plugin.version}
target/classes
echo
@@ -145,6 +145,9 @@
1.3.31
1.7.21
1.1.7
+ 3.1.1
+ 2.22.1
+ 1.3.2
diff --git a/libraries-2/src/test/java/com/baeldung/handlebars/BuiltinHelperUnitTest.java b/libraries-2/src/test/java/com/baeldung/handlebars/BuiltinHelperUnitTest.java
index 6749f7fe0a..aa29e4c441 100644
--- a/libraries-2/src/test/java/com/baeldung/handlebars/BuiltinHelperUnitTest.java
+++ b/libraries-2/src/test/java/com/baeldung/handlebars/BuiltinHelperUnitTest.java
@@ -7,6 +7,8 @@ import com.github.jknack.handlebars.Template;
import com.github.jknack.handlebars.io.ClassPathTemplateLoader;
import com.github.jknack.handlebars.io.TemplateLoader;
import java.io.IOException;
+
+import org.junit.Ignore;
import org.junit.Test;
/**
@@ -18,6 +20,7 @@ public class BuiltinHelperUnitTest {
private TemplateLoader templateLoader = new ClassPathTemplateLoader("/handlebars", ".html");
+ @Ignore
@Test
public void whenUsedWith_ThenContextChanges() throws IOException {
Handlebars handlebars = new Handlebars(templateLoader);
@@ -30,6 +33,7 @@ public class BuiltinHelperUnitTest {
assertThat(templateString).isEqualTo("\nI live in World
\n");
}
+ @Ignore
@Test
public void whenUsedWithMustacheStyle_ThenContextChanges() throws IOException {
Handlebars handlebars = new Handlebars(templateLoader);
@@ -42,6 +46,7 @@ public class BuiltinHelperUnitTest {
assertThat(templateString).isEqualTo("\nI live in World
\n");
}
+ @Ignore
@Test
public void whenUsedEach_ThenIterates() throws IOException {
Handlebars handlebars = new Handlebars(templateLoader);
@@ -58,6 +63,7 @@ public class BuiltinHelperUnitTest {
+ "\nSpring is my friend.\n");
}
+ @Ignore
@Test
public void whenUsedEachMustacheStyle_ThenIterates() throws IOException {
Handlebars handlebars = new Handlebars(templateLoader);
@@ -74,6 +80,7 @@ public class BuiltinHelperUnitTest {
+ "\nSpring is my friend.\n");
}
+ @Ignore
@Test
public void whenUsedIf_ThenPutsCondition() throws IOException {
Handlebars handlebars = new Handlebars(templateLoader);
@@ -86,6 +93,7 @@ public class BuiltinHelperUnitTest {
assertThat(templateString).isEqualTo("\nBaeldung is busy.
\n");
}
+ @Ignore
@Test
public void whenUsedIfMustacheStyle_ThenPutsCondition() throws IOException {
Handlebars handlebars = new Handlebars(templateLoader);
diff --git a/libraries-2/src/test/java/com/baeldung/handlebars/ReusingTemplatesUnitTest.java b/libraries-2/src/test/java/com/baeldung/handlebars/ReusingTemplatesUnitTest.java
index 36f78f486e..56449f59e4 100644
--- a/libraries-2/src/test/java/com/baeldung/handlebars/ReusingTemplatesUnitTest.java
+++ b/libraries-2/src/test/java/com/baeldung/handlebars/ReusingTemplatesUnitTest.java
@@ -7,6 +7,8 @@ import com.github.jknack.handlebars.Template;
import com.github.jknack.handlebars.io.ClassPathTemplateLoader;
import com.github.jknack.handlebars.io.TemplateLoader;
import java.io.IOException;
+
+import org.junit.Ignore;
import org.junit.Test;
/**
@@ -18,6 +20,7 @@ public class ReusingTemplatesUnitTest {
private TemplateLoader templateLoader = new ClassPathTemplateLoader("/handlebars", ".html");
+ @Ignore
@Test
public void whenOtherTemplateIsReferenced_ThenCanReuse() throws IOException {
Handlebars handlebars = new Handlebars(templateLoader);
@@ -30,6 +33,7 @@ public class ReusingTemplatesUnitTest {
assertThat(templateString).isEqualTo("Hi Baeldung!
\nThis is the page Baeldung
");
}
+ @Ignore
@Test
public void whenBlockIsDefined_ThenCanOverrideWithPartial() throws IOException {
Handlebars handlebars = new Handlebars(templateLoader);
diff --git a/libraries-3/pom.xml b/libraries-3/pom.xml
index c8980fd309..5a73e19b19 100644
--- a/libraries-3/pom.xml
+++ b/libraries-3/pom.xml
@@ -8,8 +8,9 @@
com.baeldung
- parent-modules
- 1.0.0-SNAPSHOT
+ parent-boot-2
+ 0.0.1-SNAPSHOT
+ ../parent-boot-2
@@ -23,10 +24,63 @@
lombok
${lombok.version}