Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JuditKnoll committed Oct 16, 2023
1 parent bf2947f commit c2a2ce9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package edu.umd.cs.findbugs.detect;

import edu.umd.cs.findbugs.AbstractIntegrationTest;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

class Issue2640Test extends AbstractIntegrationTest {
@Test
void testIssue() {
Assertions.assertDoesNotThrow(() -> performAnalysis("ghIssues/Issue2640.class"));
}
}
8 changes: 8 additions & 0 deletions spotbugsTestCases/src/java/ghIssues/Issue2640.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package ghIssues;

public class Issue2640 {
public void testUnreachableCode() {
org.junit.Assert.fail();
System.err.println("Not reachable code");
}
}

0 comments on commit c2a2ce9

Please sign in to comment.