fix tests
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package me.bearns.fias;
|
||||
|
||||
import me.bearns.fias.domain.FiasVersion;
|
||||
import me.bearns.fias.exceptions.RemoteAPIException;
|
||||
import me.bearns.fias.service.OnlineVersion;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.runner.RunWith;
|
||||
@@ -21,14 +22,14 @@ public class OnlineVersionsTest {
|
||||
|
||||
@Ignore
|
||||
@Test
|
||||
public void getLastTest(){
|
||||
public void getLastTest() throws RemoteAPIException {
|
||||
final long lastVersionId = client.getLastVersionId();
|
||||
|
||||
assert lastVersionId > 0;
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getAfterTest(){
|
||||
public void getAfterTest() throws RemoteAPIException {
|
||||
|
||||
final long count = 14;
|
||||
|
||||
@@ -46,7 +47,7 @@ public class OnlineVersionsTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getLastObjTest(){
|
||||
public void getLastObjTest() throws RemoteAPIException {
|
||||
final List<FiasVersion> versions = client.getLastVersion();
|
||||
|
||||
assert versions != null;
|
||||
|
||||
Reference in New Issue
Block a user