-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from KPMP/TI_Fix
Ti fix
- Loading branch information
Showing
3 changed files
with
90 additions
and
19 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
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
41 changes: 41 additions & 0 deletions
41
src/test/java/org/kpmp/geneExpression/RPAccessionGroupTest.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,41 @@ | ||
package org.kpmp.geneExpression; | ||
|
||
import org.junit.After; | ||
import org.junit.Before; | ||
import org.junit.Test; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
||
public class RPAccessionGroupTest { | ||
|
||
private RPAccessionGroup rpAccessionGroup; | ||
|
||
@Before | ||
public void setUp() throws Exception { | ||
rpAccessionGroup = new RPAccessionGroup(); | ||
} | ||
|
||
@After | ||
public void tearDown() throws Exception { | ||
rpAccessionGroup = null; | ||
} | ||
|
||
@Test | ||
public void testConstructor() throws Exception { | ||
RPExpressionByTissueType rpExpressionByTissueType = new RPExpressionByTissueType(); | ||
RPAccessionGroup rpAccessionGroup1 = new RPAccessionGroup("accession", rpExpressionByTissueType); | ||
assertEquals(rpExpressionByTissueType, rpAccessionGroup1.getRpExpressionByTissueType()); | ||
assertEquals("accession", rpAccessionGroup1.getAccession()); | ||
} | ||
|
||
@Test | ||
public void testSetters() throws Exception { | ||
RPExpressionByTissueType rpExpressionByTissueType = new RPExpressionByTissueType(); | ||
rpAccessionGroup.setAccession("1234"); | ||
rpAccessionGroup.setRpExpressionByTissueType(rpExpressionByTissueType); | ||
assertEquals("1234", rpAccessionGroup.getAccession()); | ||
assertEquals(rpExpressionByTissueType, rpAccessionGroup.getRpExpressionByTissueType()); | ||
} | ||
|
||
|
||
} |