Skip to content

Commit f62fe19

Browse files
committed
Suppress remaining deprecation warnings in ocpp-v1_6 tests
Some ocpp-v1_6 tests rely heavily on the deprecated no-arg constructors, so just suppress the deprecation warnings for them.
1 parent d99157b commit f62fe19

56 files changed

Lines changed: 56 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ocpp-v1_6/src/test/java/eu/chargetime/ocpp/feature/profile/test/ClientCoreProfileTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ of this software and associated documentation files (the "Software"), to deal
4848
SOFTWARE.
4949
*/
5050
@RunWith(MockitoJUnitRunner.class)
51+
@SuppressWarnings("deprecation")
5152
public class ClientCoreProfileTest extends ProfileTest {
5253
private static final UUID SESSION_NULL = null;
5354

ocpp-v1_6/src/test/java/eu/chargetime/ocpp/feature/profile/test/ClientSmartChargingProfileTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
*/
4545

4646
@RunWith(MockitoJUnitRunner.class)
47+
@SuppressWarnings("deprecation")
4748
public class ClientSmartChargingProfileTest {
4849

4950
private static final UUID SESSION_NULL = null;

ocpp-v1_6/src/test/java/eu/chargetime/ocpp/feature/profile/test/ServerSmartChargingProfileTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
*/
4444

4545
@RunWith(MockitoJUnitRunner.class)
46+
@SuppressWarnings("deprecation")
4647
public class ServerSmartChargingProfileTest extends ProfileTest {
4748

4849
private ServerSmartChargingProfile smartCharging;

ocpp-v1_6/src/test/java/eu/chargetime/ocpp/model/core/test/BootNotificationRequestTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ of this software and associated documentation files (the "Software"), to deal
3131
import org.junit.Test;
3232
import org.junit.rules.ExpectedException;
3333

34+
@SuppressWarnings("deprecation")
3435
public class BootNotificationRequestTest {
3536

3637
@Rule public ExpectedException thrownException = ExpectedException.none();

ocpp-v1_6/src/test/java/eu/chargetime/ocpp/model/firmware/test/DiagnosticsStatusNotificationRequestTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ of this software and associated documentation files (the "Software"), to deal
3838
import org.junit.Test;
3939
import org.junit.rules.ExpectedException;
4040

41+
@SuppressWarnings("deprecation")
4142
public class DiagnosticsStatusNotificationRequestTest {
4243

4344
@Rule public ExpectedException thrownException = ExpectedException.none();

ocpp-v1_6/src/test/java/eu/chargetime/ocpp/model/firmware/test/FirmwareStatusNotificationRequestTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ of this software and associated documentation files (the "Software"), to deal
3939
import org.junit.Test;
4040
import org.junit.rules.ExpectedException;
4141

42+
@SuppressWarnings("deprecation")
4243
public class FirmwareStatusNotificationRequestTest {
4344

4445
@Rule public ExpectedException thrownException = ExpectedException.none();

ocpp-v1_6/src/test/java/eu/chargetime/ocpp/model/firmware/test/GetDiagnosticsConfirmationTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ of this software and associated documentation files (the "Software"), to deal
3838
import org.junit.Test;
3939
import org.junit.rules.ExpectedException;
4040

41+
@SuppressWarnings("deprecation")
4142
public class GetDiagnosticsConfirmationTest {
4243

4344
@Rule public ExpectedException thrownException = ExpectedException.none();

ocpp-v1_6/src/test/java/eu/chargetime/ocpp/model/firmware/test/GetDiagnosticsRequestTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ of this software and associated documentation files (the "Software"), to deal
3737
import org.junit.Test;
3838
import org.junit.rules.ExpectedException;
3939

40+
@SuppressWarnings("deprecation")
4041
public class GetDiagnosticsRequestTest {
4142

4243
@Rule public ExpectedException thrownException = ExpectedException.none();

ocpp-v1_6/src/test/java/eu/chargetime/ocpp/model/firmware/test/UpdateFirmwareRequestTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ of this software and associated documentation files (the "Software"), to deal
3838
import org.junit.Test;
3939
import org.junit.rules.ExpectedException;
4040

41+
@SuppressWarnings("deprecation")
4142
public class UpdateFirmwareRequestTest {
4243

4344
@Rule public ExpectedException thrownException = ExpectedException.none();

ocpp-v1_6/src/test/java/eu/chargetime/ocpp/model/localauthlist/test/GetLocalListVersionConfirmationTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import org.mockito.junit.MockitoJUnitRunner;
1515

1616
@RunWith(MockitoJUnitRunner.class)
17+
@SuppressWarnings("deprecation")
1718
public class GetLocalListVersionConfirmationTest {
1819

1920
@Rule public ExpectedException thrownException = ExpectedException.none();

0 commit comments

Comments
 (0)