Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump maven-surefire-plugin from 2.19.1 to 2.22.2 #644

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<version>2.22.2</version>
<configuration>
<skipTests>${skipUTs}</skipTests>
<excludes>
Expand Down
43 changes: 42 additions & 1 deletion src/it/java/servlets/SetupIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public void testNoMysqlResource() {
fail(message);
}

if (authData == "") {
if (authData.equals("")) {
String message = "Auth data loaded from " + Constants.SETUP_AUTH + " was empty!";
log.fatal(message);
fail(message);
Expand Down Expand Up @@ -173,4 +173,45 @@ public void testNoMysqlResource() {
*/

}
@Ignore
@Test
public void testNoMongodbResource() {

log.debug("Creating Setup Servlet Instance");
Setup servlet = new Setup();
try {
servlet.init(new MockServletConfig("Setup"));
} catch (ServletException e) {
log.fatal(e.toString());
fail(e.toString());
}

TestProperties.deleteMongoResource();
assertTrue(Setup.isInstalled());

String mongodbProp = "";
try {
mongodbProp = FileUtils.readFileToString(new File(Constants.MONGO_DB_PROP), StandardCharsets.UTF_8);
} catch (IOException e) {
String message =
"Error when loading mongodb file "
+ Constants.MONGO_DB_PROP
+ ". Exception message was "
+ e.toString();
log.fatal(message);
fail(message);
}

if (mongodbProp == null) {
String message = "MongoDb data loaded from " + Constants.MONGO_DB_PROP + " was null!";
log.fatal(message);
fail(message);
}

if (mongodbProp.equals("")) {
String message = "MongoDb data loaded from " + Constants.MONGO_DB_PROP + " was empty!";
log.fatal(message);
fail(message);
}
}
}