This repository has been archived by the owner on Feb 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Jacoco to jaffa-components, jaffa-console
- Loading branch information
1 parent
2d25f47
commit 02c68d0
Showing
13 changed files
with
84 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
.../test/java/org/jaffa/applications/jaffa/modules/admin/exceptions/ConfigExceptionTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.jaffa.applications.jaffa.modules.admin.exceptions; | ||
|
||
import org.junit.Assert; | ||
import org.junit.Test; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
public class ConfigExceptionTest { | ||
|
||
@Test public void testConstructor1() { | ||
ConfigException exc = new ConfigException("theProp"); | ||
assertTrue(exc.toString().contains("theProp")); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...t/java/org/jaffa/modules/messaging/components/messageviewer/dto/HeaderElementDtoTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.jaffa.modules.messaging.components.messageviewer.dto; | ||
|
||
import org.junit.Test; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
public class HeaderElementDtoTest { | ||
|
||
@Test public void getNameTest() { | ||
HeaderElementDto testObject = new HeaderElementDto(); | ||
testObject.setName("bob"); | ||
assertEquals("bob", testObject.getName()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...a/modules/printing/components/formdefinitionfinder/dto/FormDefinitionFinderInDtoTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.jaffa.modules.printing.components.formdefinitionfinder.dto; | ||
|
||
import org.junit.Test; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
public class FormDefinitionFinderInDtoTest { | ||
|
||
@Test public void getHeaderDtoTest() { | ||
FormDefinitionFinderInDto testObject = new FormDefinitionFinderInDto(); | ||
testObject.setHeaderDto(null); | ||
assertNull(testObject.getHeaderDto()); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...test/java/org/jaffa/modules/scheduler/components/taskfinder/dto/TaskFinderOutDtoTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.jaffa.modules.scheduler.components.taskfinder.dto; | ||
|
||
import org.junit.Test; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
public class TaskFinderOutDtoTest { | ||
|
||
@Test public void getRowsTest() { | ||
TaskFinderOutDto testObject = new TaskFinderOutDto(); | ||
testObject.setRows(null); | ||
assertNull(testObject.getRows()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...tions/jaffa/modules/user/components/userrequestfinder/dto/UserRequestFinderInDtoTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.jaffa.applications.jaffa.modules.user.components.userrequestfinder.dto; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
public class UserRequestFinderInDtoTest { | ||
|
||
@org.junit.Test public void getHeaderDtoTest() { | ||
UserRequestFinderInDto testObject = new UserRequestFinderInDto(); | ||
testObject.setHeaderDto(null); | ||
assertNull(testObject.getHeaderDto()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,4 +87,4 @@ public void decide() { | |
LOG.info("decide: " + ret); | ||
assertTrue(ret == Filter.NEUTRAL); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
jaffa-console/src/test/java/org/jaffa/sc/apis/TreeNodeTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.jaffa.sc.apis; | ||
|
||
import org.junit.Test; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
public class TreeNodeTest { | ||
|
||
@Test public void getTextTest() { | ||
TreeNode testObject = new TreeNode("n1"); | ||
testObject.setText("hi"); | ||
assertEquals("hi", testObject.getText()); | ||
} | ||
} |