Update project and tests
Этот коммит содержится в:
@@ -2,6 +2,7 @@
|
||||
package org.traccar.client;
|
||||
|
||||
import android.location.Location;
|
||||
import android.os.Build;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
@@ -14,6 +15,7 @@ import java.util.Date;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertNull;
|
||||
|
||||
@Config(sdk = Build.VERSION_CODES.P)
|
||||
@RunWith(RobolectricTestRunner.class)
|
||||
public class DatabaseHelperTest {
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
package org.traccar.client;
|
||||
|
||||
import android.location.Location;
|
||||
import android.os.Build;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
@@ -12,6 +13,7 @@ import java.util.Date;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
@Config(sdk = Build.VERSION_CODES.P)
|
||||
@RunWith(RobolectricTestRunner.class)
|
||||
public class ProtocolFormatterTest {
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
|
||||
package org.traccar.client;
|
||||
|
||||
import android.os.Build;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
@@ -9,10 +11,11 @@ import org.robolectric.annotation.Config;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
@Config(sdk = Build.VERSION_CODES.P)
|
||||
@RunWith(RobolectricTestRunner.class)
|
||||
public class RequestManagerTest {
|
||||
|
||||
@Ignore
|
||||
@Ignore("Not a real unit test")
|
||||
@Test
|
||||
public void testSendRequest() throws Exception {
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user