mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-12-31 20:01:49 +00:00
Fully remove log4j use
This commit is contained in:
parent
7b0022de44
commit
54016d325d
17
pom.jdk8.xml
17
pom.jdk8.xml
@ -57,7 +57,6 @@
|
|||||||
<!-- Please keep the jetty version identical with the docker image -->
|
<!-- Please keep the jetty version identical with the docker image -->
|
||||||
<jetty.version>11.0.7</jetty.version>
|
<jetty.version>11.0.7</jetty.version>
|
||||||
<codemirror.version>5.63.0</codemirror.version>
|
<codemirror.version>5.63.0</codemirror.version>
|
||||||
<slf4j.version>1.7.32</slf4j.version>
|
|
||||||
|
|
||||||
<!-- dependencies -->
|
<!-- dependencies -->
|
||||||
<jstl.version>1.2</jstl.version>
|
<jstl.version>1.2</jstl.version>
|
||||||
@ -69,9 +68,7 @@
|
|||||||
<jlatexmath.version>1.0.7</jlatexmath.version>
|
<jlatexmath.version>1.0.7</jlatexmath.version>
|
||||||
<jlatexmath-font-greek.version>${jlatexmath.version}</jlatexmath-font-greek.version>
|
<jlatexmath-font-greek.version>${jlatexmath.version}</jlatexmath-font-greek.version>
|
||||||
<jlatexmath-font-cyrillic.version>${jlatexmath.version}</jlatexmath-font-cyrillic.version>
|
<jlatexmath-font-cyrillic.version>${jlatexmath.version}</jlatexmath-font-cyrillic.version>
|
||||||
<!-- Logging -->
|
|
||||||
<slf4j-log4j12.version>${slf4j.version}</slf4j-log4j12.version>
|
|
||||||
<slf4j-api.version>${slf4j.version}</slf4j-api.version>
|
|
||||||
<!-- Testing -->
|
<!-- Testing -->
|
||||||
<junit.version>4.13.2</junit.version>
|
<junit.version>4.13.2</junit.version>
|
||||||
<htmlunit.version>2.53.0</htmlunit.version>
|
<htmlunit.version>2.53.0</htmlunit.version>
|
||||||
@ -169,17 +166,7 @@
|
|||||||
<artifactId>jlatexmath-font-cyrillic</artifactId>
|
<artifactId>jlatexmath-font-cyrillic</artifactId>
|
||||||
<version>${jlatexmath-font-cyrillic.version}</version>
|
<version>${jlatexmath-font-cyrillic.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- Logging -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.slf4j</groupId>
|
|
||||||
<artifactId>slf4j-log4j12</artifactId>
|
|
||||||
<version>${slf4j-log4j12.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.slf4j</groupId>
|
|
||||||
<artifactId>slf4j-api</artifactId>
|
|
||||||
<version>${slf4j-api.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<!-- Testing -->
|
<!-- Testing -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
|
19
pom.xml
19
pom.xml
@ -57,7 +57,6 @@
|
|||||||
<!-- Please keep the jetty version identical with the docker image -->
|
<!-- Please keep the jetty version identical with the docker image -->
|
||||||
<jetty.version>11.0.7</jetty.version>
|
<jetty.version>11.0.7</jetty.version>
|
||||||
<codemirror.version>5.63.0</codemirror.version>
|
<codemirror.version>5.63.0</codemirror.version>
|
||||||
<slf4j.version>1.7.32</slf4j.version>
|
|
||||||
|
|
||||||
<!-- dependencies -->
|
<!-- dependencies -->
|
||||||
<jstl.version>1.2</jstl.version>
|
<jstl.version>1.2</jstl.version>
|
||||||
@ -69,9 +68,7 @@
|
|||||||
<jlatexmath.version>1.0.7</jlatexmath.version>
|
<jlatexmath.version>1.0.7</jlatexmath.version>
|
||||||
<jlatexmath-font-greek.version>${jlatexmath.version}</jlatexmath-font-greek.version>
|
<jlatexmath-font-greek.version>${jlatexmath.version}</jlatexmath-font-greek.version>
|
||||||
<jlatexmath-font-cyrillic.version>${jlatexmath.version}</jlatexmath-font-cyrillic.version>
|
<jlatexmath-font-cyrillic.version>${jlatexmath.version}</jlatexmath-font-cyrillic.version>
|
||||||
<!-- Logging -->
|
|
||||||
<slf4j-log4j12.version>${slf4j.version}</slf4j-log4j12.version>
|
|
||||||
<slf4j-api.version>${slf4j.version}</slf4j-api.version>
|
|
||||||
<!-- Testing -->
|
<!-- Testing -->
|
||||||
<junit.version>4.13.2</junit.version>
|
<junit.version>4.13.2</junit.version>
|
||||||
<htmlunit.version>2.53.0</htmlunit.version>
|
<htmlunit.version>2.53.0</htmlunit.version>
|
||||||
@ -147,18 +144,8 @@
|
|||||||
<artifactId>jlatexmath-font-cyrillic</artifactId>
|
<artifactId>jlatexmath-font-cyrillic</artifactId>
|
||||||
<version>${jlatexmath-font-cyrillic.version}</version>
|
<version>${jlatexmath-font-cyrillic.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- Logging -->
|
|
||||||
<dependency>
|
<!-- Testing -->
|
||||||
<groupId>org.slf4j</groupId>
|
|
||||||
<artifactId>slf4j-log4j12</artifactId>
|
|
||||||
<version>${slf4j-log4j12.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.slf4j</groupId>
|
|
||||||
<artifactId>slf4j-api</artifactId>
|
|
||||||
<version>${slf4j-api.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<!-- Testing -->
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
|
@ -8,9 +8,6 @@ import java.io.InputStreamReader;
|
|||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.net.URLConnection;
|
import java.net.URLConnection;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
import net.sourceforge.plantuml.servlet.server.EmbeddedJettyServer;
|
import net.sourceforge.plantuml.servlet.server.EmbeddedJettyServer;
|
||||||
import net.sourceforge.plantuml.servlet.server.ExternalServer;
|
import net.sourceforge.plantuml.servlet.server.ExternalServer;
|
||||||
@ -19,8 +16,6 @@ import net.sourceforge.plantuml.servlet.server.ServerUtils;
|
|||||||
|
|
||||||
public abstract class WebappTestCase extends TestCase {
|
public abstract class WebappTestCase extends TestCase {
|
||||||
|
|
||||||
protected final Logger logger;
|
|
||||||
|
|
||||||
private final ServerUtils serverUtils;
|
private final ServerUtils serverUtils;
|
||||||
|
|
||||||
public WebappTestCase() {
|
public WebappTestCase() {
|
||||||
@ -29,26 +24,26 @@ public abstract class WebappTestCase extends TestCase {
|
|||||||
|
|
||||||
public WebappTestCase(String name) {
|
public WebappTestCase(String name) {
|
||||||
super(name);
|
super(name);
|
||||||
logger = LoggerFactory.getLogger(this.getClass());
|
// logger = LoggerFactory.getLogger(this.getClass());
|
||||||
|
|
||||||
String uri = System.getProperty("system.test.server", "");
|
String uri = System.getProperty("system.test.server", "");
|
||||||
//uri = "http://localhost:8080/plantuml";
|
//uri = "http://localhost:8080/plantuml";
|
||||||
if (!uri.isEmpty()) {
|
if (!uri.isEmpty()) {
|
||||||
// mvn test -DskipTests=false -DargLine="-Dsystem.test.server=http://localhost:8080/plantuml"
|
// mvn test -DskipTests=false -DargLine="-Dsystem.test.server=http://localhost:8080/plantuml"
|
||||||
logger.info("Test against external server: " + uri);
|
// logger.info("Test against external server: " + uri);
|
||||||
serverUtils = new ExternalServer(uri);
|
serverUtils = new ExternalServer(uri);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// mvn test -DskipTests=false
|
// mvn test -DskipTests=false
|
||||||
logger.info("Test against embedded jetty server.");
|
// logger.info("Test against embedded jetty server.");
|
||||||
serverUtils = new EmbeddedJettyServer();
|
serverUtils = new EmbeddedJettyServer();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
serverUtils.startServer();
|
serverUtils.startServer();
|
||||||
logger.info(getServerUrl());
|
// logger.info(getServerUrl());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user