Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit c54f1c9

Browse files
committed
Update some tests naming and remove unused dependencies
1 parent cba63c0 commit c54f1c9

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

owncloudComLibrary/src/test/java/com/owncloud/android/lib/GetRemoteStatusOperationTest.kt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,50 +14,50 @@ import org.robolectric.RobolectricTestRunner
1414
import org.robolectric.annotation.Config
1515

1616
@RunWith(RobolectricTestRunner::class)
17-
@Config(sdk = [Build.VERSION_CODES.O_MR1])
17+
@Config(sdk = [Build.VERSION_CODES.O], manifest = Config.NONE)
1818
class GetRemoteStatusOperationTest {
1919

2020
@Test
21-
fun use_http_or_https_ok_http() {
21+
fun `uses http or https - ok - http`() {
2222
assertTrue(GetRemoteStatusOperation.usesHttpOrHttps(Uri.parse(HTTP_SOME_OWNCLOUD)))
2323
}
2424

2525
@Test
26-
fun uses_http_or_https_ok_https() {
26+
fun `uses http or https - ok - https`() {
2727
assertTrue(GetRemoteStatusOperation.usesHttpOrHttps(Uri.parse(HTTPS_SOME_OWNCLOUD)))
2828
}
2929

3030
@Test
31-
fun use_http_or_https_ok_no_http_or_https() {
31+
fun `uses http or https - ok - no http or https`() {
3232
assertFalse(GetRemoteStatusOperation.usesHttpOrHttps(Uri.parse(SOME_OWNCLOUD)))
3333
}
3434

3535
@Test
36-
fun build_full_https_url_ok_http() {
36+
fun `build full https url - ok - http`() {
3737
assertEquals(
3838
Uri.parse(HTTP_SOME_OWNCLOUD),
3939
GetRemoteStatusOperation.buildFullHttpsUrl(Uri.parse(HTTP_SOME_OWNCLOUD))
4040
)
4141
}
4242

4343
@Test
44-
fun build_full_https_url_ok_https() {
44+
fun `build full https url - ok - https`() {
4545
assertEquals(
4646
Uri.parse(HTTPS_SOME_OWNCLOUD),
4747
GetRemoteStatusOperation.buildFullHttpsUrl(Uri.parse(HTTPS_SOME_OWNCLOUD))
4848
)
4949
}
5050

5151
@Test
52-
fun build_full_https_url_ok_no_prefix() {
52+
fun `build full https url - ok - no prefix`() {
5353
assertEquals(
5454
Uri.parse(HTTPS_SOME_OWNCLOUD),
5555
GetRemoteStatusOperation.buildFullHttpsUrl(Uri.parse(SOME_OWNCLOUD))
5656
)
5757
}
5858

5959
@Test
60-
fun build_full_https_url_ok_no_https_with_subdir() {
60+
fun `build full https url - ok - no https with subdir`() {
6161
assertEquals(
6262
Uri.parse(HTTPS_SOME_OWNCLOUD_WITH_SUBDIR), GetRemoteStatusOperation.buildFullHttpsUrl(
6363
Uri.parse(
@@ -68,7 +68,7 @@ class GetRemoteStatusOperationTest {
6868
}
6969

7070
@Test
71-
fun build_full_https_url_ok_no_prefix_with_subdir() {
71+
fun `build full https url - ok - no prefix with subdir`() {
7272
assertEquals(
7373
Uri.parse(HTTPS_SOME_OWNCLOUD_WITH_SUBDIR), GetRemoteStatusOperation.buildFullHttpsUrl(
7474
Uri.parse(
@@ -79,25 +79,25 @@ class GetRemoteStatusOperationTest {
7979
}
8080

8181
@Test
82-
fun build_full_https_url_ok_ip() {
82+
fun `build full https url - ok - ip`() {
8383
assertEquals(Uri.parse(HTTPS_SOME_IP), GetRemoteStatusOperation.buildFullHttpsUrl(Uri.parse(SOME_IP)))
8484
}
8585

8686
@Test
87-
fun build_full_https_url_http_ip() {
87+
fun `build full https url - ok - http ip`() {
8888
assertEquals(Uri.parse(HTTP_SOME_IP), GetRemoteStatusOperation.buildFullHttpsUrl(Uri.parse(HTTP_SOME_IP)))
8989
}
9090

9191
@Test
92-
fun build_full_https_url_ok_ip_with_port() {
92+
fun `build full https url - ok - ip with port`() {
9393
assertEquals(
9494
Uri.parse(HTTPS_SOME_IP_WITH_PORT),
9595
GetRemoteStatusOperation.buildFullHttpsUrl(Uri.parse(SOME_IP_WITH_PORT))
9696
)
9797
}
9898

9999
@Test
100-
fun build_full_https_url_ok_ip_with_http_and_port() {
100+
fun `build full https url - ok - ip with http and port`() {
101101
assertEquals(
102102
Uri.parse(HTTP_SOME_IP_WITH_PORT),
103103
GetRemoteStatusOperation.buildFullHttpsUrl(Uri.parse(HTTP_SOME_IP_WITH_PORT))

0 commit comments

Comments
 (0)