CoapAttributesUpdatesIntegrationTest.java: unused spy wraparound removed
This commit is contained in:
parent
c5aef4c8be
commit
9a8e39856b
@ -34,8 +34,6 @@ import static org.mockito.Mockito.spy;
|
|||||||
@DaoSqlTest
|
@DaoSqlTest
|
||||||
public class CoapAttributesUpdatesIntegrationTest extends AbstractCoapAttributesIntegrationTest {
|
public class CoapAttributesUpdatesIntegrationTest extends AbstractCoapAttributesIntegrationTest {
|
||||||
|
|
||||||
CoapTransportResource coapTransportResource;
|
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
DefaultCoapServerService defaultCoapServerService;
|
DefaultCoapServerService defaultCoapServerService;
|
||||||
|
|
||||||
@ -44,10 +42,6 @@ public class CoapAttributesUpdatesIntegrationTest extends AbstractCoapAttributes
|
|||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void beforeTest() throws Exception {
|
public void beforeTest() throws Exception {
|
||||||
Resource api = defaultCoapServerService.getCoapServer().getRoot().getChild("api");
|
|
||||||
coapTransportResource = spy( (CoapTransportResource) api.getChild("v1") );
|
|
||||||
api.delete(api.getChild("v1") );
|
|
||||||
api.add(coapTransportResource);
|
|
||||||
CoapTestConfigProperties configProperties = CoapTestConfigProperties.builder()
|
CoapTestConfigProperties configProperties = CoapTestConfigProperties.builder()
|
||||||
.deviceName("Test Subscribe to attribute updates")
|
.deviceName("Test Subscribe to attribute updates")
|
||||||
.build();
|
.build();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user