Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bilal-alsharifi committed Nov 6, 2020
1 parent 72751ad commit 178cd27
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.junit.runner.RunWith;

import static junit.framework.TestCase.assertEquals;
import static junit.framework.TestCase.fail;

@RunWith(AndroidJUnit4.class)
public class VersionTest {
Expand All @@ -27,10 +28,8 @@ public void testConstructorCorrect() {
public void testConstructorIncorrect() {
try {
Version version = new Version("1.2");
} catch (Exception e) {
assert true;
}
assert false;
fail();
} catch (Exception e) {}
}

@Test
Expand Down

0 comments on commit 178cd27

Please sign in to comment.