Skip to content

Commit

Permalink
#1983 updates unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Sheirer committed Sep 18, 2024
1 parent 996fe7c commit 9d6b308
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/test/java/io/github/dsheirer/alias/P25AliasTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ void aliasP25FullyQualifiedTalkgroupToBasicTalkgroupAlias()
APCO25FullyQualifiedTalkgroupIdentifier p25FQTG1 = APCO25FullyQualifiedTalkgroupIdentifier.createTo(aliasGroup, wacn, system, originalGroup);

List<Alias> aliases = aliasList.getAliases(p25FQTG1);
assertEquals(1, aliases.size(), "Expected 1 matching alias");
assertEquals(correctAliasName, aliases.getFirst().getName(), "Unexpected alias name");
assertEquals(0, aliases.size(), "Expected 0 matching alias");
}

/**
Expand All @@ -148,8 +147,7 @@ void aliasP25FullyQualifiedTalkgroupToTalkgroupRangeAlias()
APCO25FullyQualifiedTalkgroupIdentifier p25FQTG1 = APCO25FullyQualifiedTalkgroupIdentifier.createTo(aliasGroup, wacn, system, originalGroup);

List<Alias> aliases = aliasList.getAliases(p25FQTG1);
assertEquals(1, aliases.size(), "Expected 1 matching alias");
assertEquals(correctAliasName, aliases.getFirst().getName(), "Unexpected alias name");
assertEquals(0, aliases.size(), "Expected 0 matching aliases");
}

@Test
Expand Down Expand Up @@ -233,8 +231,7 @@ void aliasP25FullyQualifiedRadioToBasicRadioAlias()
APCO25FullyQualifiedRadioIdentifier p25FQTG1 = APCO25FullyQualifiedRadioIdentifier.createFrom(aliasRadio, wacn, system, originalRadio);

List<Alias> aliases = aliasList.getAliases(p25FQTG1);
assertEquals(1, aliases.size(), "Expected 1 matching alias");
assertEquals(correctAliasName, aliases.getFirst().getName(), "Unexpected alias name");
assertEquals(0, aliases.size(), "Expected 0 matching aliases");
}

/**
Expand All @@ -261,7 +258,6 @@ void aliasP25FullyQualifiedRadioToRadioRangeAlias()
APCO25FullyQualifiedRadioIdentifier p25FQTG1 = APCO25FullyQualifiedRadioIdentifier.createFrom(aliasRadio, wacn, system, originalRadio);

List<Alias> aliases = aliasList.getAliases(p25FQTG1);
assertEquals(1, aliases.size(), "Expected 1 matching alias");
assertEquals(correctAliasName, aliases.getFirst().getName(), "Unexpected alias name");
assertEquals(0, aliases.size(), "Expected 0 matching aliases");
}
}

0 comments on commit 9d6b308

Please sign in to comment.