Merge pull request #23 from eugenp/master

update
This commit is contained in:
Maiklins
2020-01-26 23:01:36 +01:00
committed by GitHub
101 changed files with 269 additions and 13 deletions
@@ -31,10 +31,10 @@ public class UserServerUnitTest extends JUnitRouteTest {
.assertStatusCode(404); .assertStatusCode(404);
appRoute.run(HttpRequest.DELETE("/users/1")) appRoute.run(HttpRequest.DELETE("/users/1"))
.assertStatusCode(200); .assertStatusCode(405);
appRoute.run(HttpRequest.DELETE("/users/42")) appRoute.run(HttpRequest.DELETE("/users/42"))
.assertStatusCode(200); .assertStatusCode(405);
appRoute.run(HttpRequest.POST("/users") appRoute.run(HttpRequest.POST("/users")
.withEntity(HttpEntities.create(ContentTypes.APPLICATION_JSON, zaphod()))) .withEntity(HttpEntities.create(ContentTypes.APPLICATION_JSON, zaphod())))
+6 -1
View File
@@ -24,9 +24,14 @@
<dependency> <dependency>
<groupId>org.junit.jupiter</groupId> <groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId> <artifactId>junit-jupiter-api</artifactId>
<version>5.5.1</version> <version>${jupiter.version}</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${jupiter.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId> <artifactId>spring-core</artifactId>
@@ -17,7 +17,6 @@ import org.springframework.mock.jndi.SimpleNamingContextBuilder;
@TestMethodOrder(MethodOrderer.OrderAnnotation.class) @TestMethodOrder(MethodOrderer.OrderAnnotation.class)
public class JndiExceptionsUnitTest { public class JndiExceptionsUnitTest {
@Disabled
@Test @Test
@Order(1) @Order(1)
void givenNoContext_whenLookupObject_thenThrowNoInitialContext() { void givenNoContext_whenLookupObject_thenThrowNoInitialContext() {
-1
View File
@@ -21,7 +21,6 @@
<module>jackson-conversions-2</module> <module>jackson-conversions-2</module>
<module>jackson-custom-conversions</module> <module>jackson-custom-conversions</module>
<module>jackson-exceptions</module> <module>jackson-exceptions</module>
<module>jackson-simple</module>
</modules> </modules>
<dependencies> <dependencies>
@@ -16,4 +16,4 @@ The "REST With Spring" Classes: http://bit.ly/restwithspring
### NOTE: ### NOTE:
Since this is a module tied to an e-book, it should **not** be used to store the code for any further article. Since this is a module tied to an e-book, it should **not** be moved or used to store the code for any further article.
@@ -8,11 +8,18 @@
<parent> <parent>
<groupId>com.baeldung</groupId> <groupId>com.baeldung</groupId>
<artifactId>jackson-modules</artifactId> <artifactId>parent-java</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
<relativePath>../parent-java</relativePath>
</parent> </parent>
<dependencies> <dependencies>
<!--jackson for xml -->
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-xml</artifactId>
<version>${jackson.version}</version>
</dependency>
<!-- test scoped --> <!-- test scoped -->
<dependency> <dependency>
<groupId>org.assertj</groupId> <groupId>org.assertj</groupId>

Some files were not shown because too many files have changed in this diff Show More