Skip to content

Commit

Permalink
test for false-positive
Browse files Browse the repository at this point in the history
  • Loading branch information
dernasherbrezon committed Oct 13, 2023
1 parent f347814 commit c32fab1
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import ru.r2cloud.jradio.AssertJson;
import ru.r2cloud.jradio.fec.ViterbiTest;
import ru.r2cloud.jradio.fec.ccsds.UncorrectableException;

public class SaplingGiganteumBeaconTest {

Expand All @@ -20,6 +21,13 @@ public void testTelemetry() throws Exception {
AssertJson.assertObjectsEqual("SaplingGiganteumBeacon.json", result);
}

@Test(expected = UncorrectableException.class)
public void testFalsePositive() throws Exception {
byte[] data = ViterbiTest.hexStringToByteArray("DCCCCF81AE3379095F299902DA7599AAD2E43EA5D0B50CACC1C98DD106510D53265EF152EB8D451F6D16A7D5CC026311CDF5A733DCE6822E9540867AB0596D74F37AEAA259D7B0C5CC113AF25AFBD1CDA7F843831574A99ED341FFE87B5EACD20001FDF3507DDC3477D1EEDA774B7A1B46D88B56B39F330B5B19078A6CC6B69DCFF1A266AA551FE7F2598CEF3E27626A2E23B83F17FA4CDD");
SaplingGiganteumBeacon result = new SaplingGiganteumBeacon();
result.readBeacon(data);
}

@Test
public void testPojo() {
assertThat(SaplingGiganteumBeacon.class, allOf(hasValidBeanConstructor(), hasValidGettersAndSetters()));
Expand Down

0 comments on commit c32fab1

Please sign in to comment.