Skip to content

Commit

Permalink
Fix local junit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Shelnutt2 committed Apr 4, 2016
1 parent ad37b02 commit 871d972
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
1 change: 1 addition & 0 deletions banddetection/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ install {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
testCompile 'org.hamcrest:hamcrest-library:1.3'
//noinspection GradleDependency
compile 'com.android.support:appcompat-v7:23.2.1'
androidTestCompile 'junit:junit:4.12'
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package nu.shel.banddetection;

import android.test.suitebuilder.annotation.SmallTest;

import junit.framework.TestCase;

import org.junit.Test;
Expand All @@ -8,7 +10,7 @@
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;

public class LTEBandTest extends TestCase{
public class LTEBandTest {

@Test
public void GetBandFromEarfcn_returnsBand41() {
Expand All @@ -17,7 +19,7 @@ public void GetBandFromEarfcn_returnsBand41() {

@Test
public void GetBandFromEarfcn_InvalidBandLow_returnsBand0() {
assertThat(GetBandFromEarfcn(-1).band, is(41));
assertThat(GetBandFromEarfcn(-1).band, is(0));
}

@Test
Expand Down

0 comments on commit 871d972

Please sign in to comment.