Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add unit test for portal in dashboard
[nonrtric.git]
/
dashboard
/
webapp-backend
/
src
/
test
/
java
/
org
/
oransc
/
ric
/
portal
/
dashboard
/
DashboardTestServer.java
diff --git
a/dashboard/webapp-backend/src/test/java/org/oransc/ric/portal/dashboard/DashboardTestServer.java
b/dashboard/webapp-backend/src/test/java/org/oransc/ric/portal/dashboard/DashboardTestServer.java
index
e19890b
..
9ed3869
100644
(file)
--- a/
dashboard/webapp-backend/src/test/java/org/oransc/ric/portal/dashboard/DashboardTestServer.java
+++ b/
dashboard/webapp-backend/src/test/java/org/oransc/ric/portal/dashboard/DashboardTestServer.java
@@
-19,8
+19,6
@@
*/
package org.oransc.ric.portal.dashboard;
*/
package org.oransc.ric.portal.dashboard;
-import static org.junit.jupiter.api.Assertions.assertEquals;
-
import java.lang.invoke.MethodHandles;
import org.junit.jupiter.api.Test;
import java.lang.invoke.MethodHandles;
import org.junit.jupiter.api.Test;
@@
-55,6
+53,7
@@
public class DashboardTestServer {
* Keeps the test server alive forever. Use a guard so this test is never run by
* Jenkins.
*/
* Keeps the test server alive forever. Use a guard so this test is never run by
* Jenkins.
*/
+ @SuppressWarnings("squid:S2699") // To avoid warning about missing assertion.
@EnabledIfSystemProperty(named = "org.oransc.ric.portal.dashboard", matches = "mock")
@Test
public void keepServerAlive() {
@EnabledIfSystemProperty(named = "org.oransc.ric.portal.dashboard", matches = "mock")
@Test
public void keepServerAlive() {
@@
-66,6
+65,5
@@
public class DashboardTestServer {
} catch (Exception ex) {
logger.warn(ex.toString());
}
} catch (Exception ex) {
logger.warn(ex.toString());
}
- assertEquals(1, 2);
}
}
}
}