Skip to content

Commit

Permalink
Fix unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
philiptzou committed Mar 21, 2024
1 parent b00342c commit 692e05e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class CommentTypeTest {

@Test
public void testCommentType() {
assertEquals(CommentType.values().length, 6);
assertEquals(CommentType.values().length, 7);

CommentType.valueOf("Major");
CommentType.valueOf("Accessory");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ConditionTypeTest {

@Test
public void testConditionType() {
assertEquals(CommentType.values().length, 6);
assertEquals(CommentType.values().length, 7);

ConditionType.valueOf("MUTATION");
ConditionType.valueOf("DRUGLEVEL");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
import org.junit.Before;
import org.junit.Test;

import edu.stanford.hivdb.comments.ConditionType;
import edu.stanford.hivdb.comments.ConditionalComment;
import edu.stanford.hivdb.drugs.DrugClass;
import edu.stanford.hivdb.mutations.GenePosition;
import edu.stanford.hivdb.viruses.Strain;
Expand All @@ -51,7 +49,7 @@ private static void initInstance() {

Map<String, Object> condValue = new HashMap<>();
List<Double> levels = new ArrayList<>();
levels.add(new Double(5.0));
levels.add(Double.valueOf(5.0));
condValue.put("drug", "DRV");
condValue.put("levels", levels);

Expand Down Expand Up @@ -156,12 +154,12 @@ public void testGetDrugLevels() {

Map<String, Object> condValueOfAnd = new HashMap<>();
List<Double> levels = new ArrayList<>();
levels.add(new Double(5.0));
levels.add(Double.valueOf(5.0));
condValueOfAnd.put("drug", "DRV");
condValueOfAnd.put("levels", levels);
andValue.add(condValueOfAnd);
levels = new ArrayList<>();
levels.add(new Double(4.0));
levels.add(Double.valueOf(4.0));
condValueOfAnd.put("drug", "TPV");
condValueOfAnd.put("levels", levels);
andValue.add(condValueOfAnd);
Expand Down

0 comments on commit 692e05e

Please sign in to comment.