Skip to content

Commit e05c9e4

Browse files
committed
Test checkstyle fixes
1 parent 5a126db commit e05c9e4

File tree

21 files changed

+118
-58
lines changed

21 files changed

+118
-58
lines changed

bson/src/test/unit/org/bson/io/BasicOutputBufferTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ byte[] getBytes(final BasicOutputBuffer basicOutputBuffer) throws IOException {
5454
return baos.toByteArray();
5555
}
5656

57-
}
57+
}

driver-async/src/test/unit/com/mongodb/async/client/TestOperationExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ AsyncWriteOperation getWriteOperation() {
103103
return writeOperations.isEmpty() ? null : writeOperations.remove(0);
104104
}
105105

106-
}
106+
}

driver-core/src/test/functional/com/mongodb/binding/SingleConnectionBindingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public void shouldHaveTheDifferentConnectionForReadsAndWritesWithNonPrimaryReadP
101101

102102
ConnectionSource readSource = binding.getReadConnectionSource();
103103
Connection readConnection = readSource.getConnection();
104-
104+
105105
// expect
106106
assertThat(writeConnection.getDescription().getConnectionId(), is(not(readConnection.getDescription().getConnectionId())));
107107

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
/*
2+
* Copyright 2015 MongoDB, Inc.
23
*
3-
* * Copyright (c) 2008-2014 MongoDB, Inc.
4-
* *
5-
* * Licensed under the Apache License, Version 2.0 (the "License");
6-
* * you may not use this file except in compliance with the License.
7-
* * You may obtain a copy of the License at
8-
* *
9-
* * http://www.apache.org/licenses/LICENSE-2.0
10-
* *
11-
* * Unless required by applicable law or agreed to in writing, software
12-
* * distributed under the License is distributed on an "AS IS" BASIS,
13-
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
* * See the License for the specific language governing permissions and
15-
* * limitations under the License.
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
167
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
1715
*/
1816

1917
package com.mongodb.client.test;
@@ -33,7 +31,6 @@ public <T> Codec<T> get(final Class<T> clazz, final CodecRegistry registry) {
3331
if (clazz.equals(Worker.class)) {
3432
return (Codec<T>) new WorkerCodec();
3533
}
36-
3734
return null;
3835
}
39-
}
36+
}

driver-core/src/test/unit/com/mongodb/ReadPreferenceChooseServersTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,4 +172,4 @@ public void testNearestMode() {
172172
pref = ReadPreference.nearest(new TagSet(new Tag("unknown", "2")));
173173
assertTrue(pref.choose(set).isEmpty());
174174
}
175-
}
175+
}

driver-core/src/test/unit/com/mongodb/connection/ClusterDescriptionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,4 +223,4 @@ public void testObjectOverrides() throws UnknownHostException {
223223
assertEquals(description.hashCode(), descriptionTwo.hashCode());
224224
assertTrue(description.toString().startsWith("ClusterDescription"));
225225
}
226-
}
226+
}

driver-core/src/test/unit/com/mongodb/connection/MessageHelper.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2014 MongoDB, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.mongodb.connection;
218

319
import org.bson.BsonBinaryReader;

driver-core/src/test/unit/com/mongodb/connection/NativeAuthenticatorUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,4 @@ private void validateMessages() {
118118
+ "\"nonce\" : \"2375531c32080ae8\", "
119119
+ "\"key\" : \"21742f26431831d5cfca035a08c5bdf6\" }", secondCommand);
120120
}
121-
}
121+
}

driver-core/src/test/unit/com/mongodb/connection/X509AuthenticatorUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,4 @@ private void validateMessages() {
115115

116116
assertEquals(expectedCommand, command);
117117
}
118-
}
118+
}

driver-core/src/test/unit/com/mongodb/selector/ServerAddressSelectorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ public void testAll() throws UnknownHostException {
5555
assertEquals(Arrays.asList(secondary), selector.select(new ClusterDescription(MULTIPLE, REPLICA_SET,
5656
Arrays.asList(primary, secondary))));
5757
}
58-
}
58+
}

0 commit comments

Comments
 (0)