Rename protocol formatter class
Этот коммит содержится в:
+2
-2
@@ -12,7 +12,7 @@ import static org.junit.Assert.assertEquals;
|
||||
|
||||
@RunWith(RobolectricGradleTestRunner.class)
|
||||
@Config(constants = BuildConfig.class, sdk = 21)
|
||||
public class ProtocolTest {
|
||||
public class ProtocolFormatterTest {
|
||||
|
||||
@Test
|
||||
public void testFormatRequest() throws Exception {
|
||||
@@ -20,7 +20,7 @@ public class ProtocolTest {
|
||||
Location location = new Location("gps");
|
||||
location.setTime(0);
|
||||
|
||||
String url = Protocol.formatRequest("localhost", 5055, "123456789012345", location, 0);
|
||||
String url = ProtocolFormatter.formatRequest("localhost", 5055, "123456789012345", location, 0);
|
||||
|
||||
assertEquals("http://localhost:5055?id=123456789012345×tamp=0&lat=0.0&lon=0.0&speed=0.0&bearing=0.0&altitude=0.0&batt=0.0", url);
|
||||
|
||||
Ссылка в новой задаче
Block a user