Skip to content

Commit ea72fa3

Browse files
committed
Fixed sonar issues
1 parent 16d171b commit ea72fa3

4 files changed

Lines changed: 11 additions & 12 deletions

File tree

dbus-java-tests/src/test/java/org/freedesktop/dbus/connections/SASLTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,31 @@
1313

1414
import java.io.IOException;
1515

16-
public class SASLTest extends AbstractBaseTest {
16+
class SASLTest extends AbstractBaseTest {
1717

1818
@Test
19-
public void testCommandNoData() throws IOException {
19+
void testCommandNoData() throws IOException {
2020
Command cmdData = new Command("DATA ");
2121
assertEquals(SaslCommand.DATA, cmdData.getCommand());
2222
assertNull(cmdData.getData());
2323
}
2424

2525
@Test
26-
public void testCommandWithData() throws IOException {
26+
void testCommandWithData() throws IOException {
2727
Command cmdData = new Command("DATA blafasel");
2828
assertEquals(SaslCommand.DATA, cmdData.getCommand());
2929
assertEquals("blafasel", cmdData.getData());
3030
}
3131

3232
@Test
33-
public void testCommandAuth() throws IOException {
33+
void testCommandAuth() throws IOException {
3434
Command cmdData = new Command("AUTH ");
3535
assertEquals(SaslCommand.AUTH, cmdData.getCommand());
3636
assertNull(cmdData.getData());
3737
}
3838

3939
@Test
40-
public void testAnonymousAuthentication() throws DBusException {
40+
void testAnonymousAuthentication() throws DBusException {
4141
String protocolType = TransportBuilder.getRegisteredBusTypes().getFirst();
4242
String newAddress = TransportBuilder.createDynamicSession(protocolType, false);
4343

dbus-java-tests/src/test/java/org/freedesktop/dbus/test/ExportNestedTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@
77
import org.freedesktop.dbus.interfaces.DBusInterface;
88
import org.junit.jupiter.api.Test;
99

10-
import java.io.IOException;
1110
import java.util.ArrayList;
1211
import java.util.Arrays;
1312
import java.util.List;
1413

15-
public class ExportNestedTest extends AbstractDBusDaemonBaseTest {
14+
class ExportNestedTest extends AbstractDBusDaemonBaseTest {
1615

1716
@Test
18-
public void testExportNested() throws IOException, DBusException {
17+
void testExportNested() throws DBusException {
1918
try (DBusConnection conn = DBusConnectionBuilder.forSessionBus().build()) {
2019
MyObjectPart part1 = new MyObjectPart();
2120
part1.setVal1("ABC");

dbus-java-tests/src/test/java/sample/issue/Issue196Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414

1515
import java.lang.reflect.Proxy;
1616

17-
public class Issue196Test extends AbstractBaseTest {
17+
class Issue196Test extends AbstractBaseTest {
1818

1919
@Test
20-
public void testCorrectInterfaceCreation() throws Exception {
20+
void testCorrectInterfaceCreation() throws Exception {
2121
String protocolType = TransportBuilder.getRegisteredBusTypes().getFirst();
2222
BusAddress busAddress = TransportBuilder.createWithDynamicSession(protocolType).configure().build()
2323
.getBusAddress();

dbus-java-tests/src/test/java/sample/issue/Issue244Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
* the daemon disappears, the shared connection should no longer be used.
1515
* Instead this broken connection should be cleaned from the internal connection map.
1616
*/
17-
public class Issue244Test extends AbstractBaseTest {
17+
class Issue244Test extends AbstractBaseTest {
1818

1919
@Test
20-
public void testSharedConnection() {
20+
void testSharedConnection() {
2121
String busType = TransportBuilder.getRegisteredBusTypes().getFirst();
2222
String addr = TransportBuilder.createDynamicSession(busType, false);
2323
BusAddress clientAddress = BusAddress.of(addr);

0 commit comments

Comments
 (0)