Skip to content

Commit

Permalink
[JAVA-8684] Clean up pom files and use JUnit 5
Browse files Browse the repository at this point in the history
  • Loading branch information
hkhan committed May 2, 2022
1 parent 8fdbd92 commit c03b6a2
Show file tree
Hide file tree
Showing 7 changed files with 87 additions and 38 deletions.
2 changes: 0 additions & 2 deletions oauth-rest/oauth-authorization-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.baeldung</groupId>
<artifactId>oauth-authorization-server</artifactId>
<version>0.1.0-SNAPSHOT</version>
<packaging>jar</packaging>
Expand All @@ -18,7 +17,6 @@
<dependencies>

<!-- web -->

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
Expand Down
8 changes: 3 additions & 5 deletions oauth-rest/oauth-resource-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.baeldung</groupId>
<artifactId>oauth-resource-server</artifactId>
<version>0.1.0-SNAPSHOT</version>
<packaging>jar</packaging>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.4</version>
<relativePath /> <!-- lookup parent from repository -->
<groupId>com.baeldung</groupId>
<artifactId>oauth-rest</artifactId>
<version>0.1.0-SNAPSHOT</version>
</parent>

<dependencies>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
package com.baeldung.test;

import org.junit.Test;
import org.junit.runner.RunWith;
import com.baeldung.config.UiApplication;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
import org.springframework.test.context.junit4.SpringRunner;

import com.baeldung.config.UiApplication;
import org.springframework.test.context.junit.jupiter.SpringExtension;

@RunWith(SpringRunner.class)
@ExtendWith(SpringExtension.class)
@SpringBootTest(classes = UiApplication.class, webEnvironment = WebEnvironment.RANDOM_PORT)
public class UiIntegrationTest {

@Test
public void whenLoadApplication_thenSuccess() {
void whenLoadApplication_thenSuccess() {

}
}
7 changes: 3 additions & 4 deletions oauth-rest/oauth-ui-authorization-code-angular/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
<artifactId>oauth-ui-authorization-code-angular</artifactId>

<name>oauth-ui-authorization-code-angular</name>
<packaging>war</packaging>
<packaging>pom</packaging>

<parent>
<groupId>com.baeldung</groupId>
<artifactId>spring-security-oauth</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../../</relativePath>
<artifactId>oauth-rest</artifactId>
<version>0.1.0-SNAPSHOT</version>
</parent>

<build>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 7 additions & 16 deletions oauth-rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,12 @@
<version>0.1.0-SNAPSHOT</version>
<packaging>pom</packaging>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencyManagement>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.6.7</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>

<modules>
<module>oauth-authorization-server</module>
Expand All @@ -31,4 +22,4 @@
<module>oauth-ui-authorization-code-angular-zuul</module>
</modules>

</project>
</project>

0 comments on commit c03b6a2

Please sign in to comment.