changeset 2493:49e3ab7f5702

Use junit assert instead of jvm assert in tests Reviewed-by: aazores, jerboaa Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2016-October/021194.html
author Omair Majid <omajid@redhat.com>
date Tue, 25 Oct 2016 15:49:25 -0400
parents afecd793c82f
children 16338cf8942c
files process-handler/src/test/java/com/redhat/thermostat/service/internal/ProcessHendlerImplTest.java system-backend/src/test/java/com/redhat/thermostat/backend/system/internal/SystemBackendTest.java
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/process-handler/src/test/java/com/redhat/thermostat/service/internal/ProcessHendlerImplTest.java	Tue Oct 25 15:31:41 2016 -0400
+++ b/process-handler/src/test/java/com/redhat/thermostat/service/internal/ProcessHendlerImplTest.java	Tue Oct 25 15:49:25 2016 -0400
@@ -44,6 +44,7 @@
 import org.junit.Test;
 
 import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
 
 public class ProcessHendlerImplTest {
 
@@ -54,9 +55,9 @@
         assertNotNull(hnd);
 
         if (OS.IS_UNIX) {
-            assert(hnd instanceof UnixProcessUtilities);
+            assertTrue(hnd instanceof UnixProcessUtilities);
         } else {
-            assert(hnd instanceof WindowsProcessUtilities);
+            assertTrue(hnd instanceof WindowsProcessUtilities);
         }
     }
 }
--- a/system-backend/src/test/java/com/redhat/thermostat/backend/system/internal/SystemBackendTest.java	Tue Oct 25 15:31:41 2016 -0400
+++ b/system-backend/src/test/java/com/redhat/thermostat/backend/system/internal/SystemBackendTest.java	Tue Oct 25 15:49:25 2016 -0400
@@ -88,7 +88,7 @@
     public void testActivateTwice() {
         b.activate();
         b.activate();
-        assert(b.isActive());
+        assertTrue(b.isActive());
     }
 
     @Test