From 9d6b3086ba02a307b1f6eeaae6e4a7ef0dba9125 Mon Sep 17 00:00:00 2001 From: Dennis Sheirer Date: Wed, 18 Sep 2024 03:46:50 -0400 Subject: [PATCH] #1983 updates unit tests --- .../java/io/github/dsheirer/alias/P25AliasTest.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/test/java/io/github/dsheirer/alias/P25AliasTest.java b/src/test/java/io/github/dsheirer/alias/P25AliasTest.java index 238101757..7d07bd3d6 100644 --- a/src/test/java/io/github/dsheirer/alias/P25AliasTest.java +++ b/src/test/java/io/github/dsheirer/alias/P25AliasTest.java @@ -120,8 +120,7 @@ void aliasP25FullyQualifiedTalkgroupToBasicTalkgroupAlias() APCO25FullyQualifiedTalkgroupIdentifier p25FQTG1 = APCO25FullyQualifiedTalkgroupIdentifier.createTo(aliasGroup, wacn, system, originalGroup); List 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"); } /** @@ -148,8 +147,7 @@ void aliasP25FullyQualifiedTalkgroupToTalkgroupRangeAlias() APCO25FullyQualifiedTalkgroupIdentifier p25FQTG1 = APCO25FullyQualifiedTalkgroupIdentifier.createTo(aliasGroup, wacn, system, originalGroup); List 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 @@ -233,8 +231,7 @@ void aliasP25FullyQualifiedRadioToBasicRadioAlias() APCO25FullyQualifiedRadioIdentifier p25FQTG1 = APCO25FullyQualifiedRadioIdentifier.createFrom(aliasRadio, wacn, system, originalRadio); List 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"); } /** @@ -261,7 +258,6 @@ void aliasP25FullyQualifiedRadioToRadioRangeAlias() APCO25FullyQualifiedRadioIdentifier p25FQTG1 = APCO25FullyQualifiedRadioIdentifier.createFrom(aliasRadio, wacn, system, originalRadio); List 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"); } }