@@ -59,7 +59,7 @@ void tearDown() {
59
59
"mongo.local, driver.mongo.local"
60
60
})
61
61
@ DisplayName ("1. Allow SRVs with fewer than 3 '.' separated parts" )
62
- void test1 (final String srvHost , final String resolvedHost ) {
62
+ void test_allow_SRVs_with_fewer_than_three_parts (final String srvHost , final String resolvedHost ) {
63
63
doTest (srvHost , resolvedHost , false );
64
64
}
65
65
@@ -70,7 +70,7 @@ void test1(final String srvHost, final String resolvedHost) {
70
70
"blogs.mongodb.com, blogs.evil.com"
71
71
})
72
72
@ DisplayName ("2. Throw when return address does not end with SRV domain" )
73
- void test2 (final String srvHost , final String resolvedHost ) {
73
+ void test_throw_when_return_address_doesnot_end_with_SRV_domain (final String srvHost , final String resolvedHost ) {
74
74
doTest (srvHost , resolvedHost , true );
75
75
}
76
76
@@ -79,8 +79,8 @@ void test2(final String srvHost, final String resolvedHost) {
79
79
"localhost, localhost" ,
80
80
"mongo.local, mongo.local"
81
81
})
82
- @ DisplayName ("3. Throw when return address is identical to SRV hostname and return address does not contain '.' separating shared part of domain " )
83
- void test3 (final String srvHost , final String resolvedHost ) {
82
+ @ DisplayName ("3. Throw when return address is identical to SRV hostname and the SRV hostname has fewer than three `.` separated parts " )
83
+ void test_throw_when_return_address_is_identical_to_SRV_hostname (final String srvHost , final String resolvedHost ) {
84
84
doTest (srvHost , resolvedHost , true );
85
85
}
86
86
@@ -91,7 +91,7 @@ void test3(final String srvHost, final String resolvedHost) {
91
91
"blogs.mongodb.com, cluster.testmongodb.com"
92
92
})
93
93
@ DisplayName ("4. Throw when return address does not contain '.' separating shared part of domain" )
94
- void test4 (final String srvHost , final String resolvedHost ) {
94
+ void test_throw_when_return_address_doesnot_contain_shared_part_of_domain (final String srvHost , final String resolvedHost ) {
95
95
doTest (srvHost , resolvedHost , true );
96
96
}
97
97
0 commit comments