Suppress "unused" warnings in tests
This commit is contained in:
parent
2872282d75
commit
a975b9d5da
|
@ -54,6 +54,7 @@ public class BeanUtilsBenchmark {
|
|||
static class TestClass1{
|
||||
};
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
static class TestClass2 {
|
||||
private final int value1;
|
||||
private final String value2;
|
||||
|
@ -63,4 +64,5 @@ public class BeanUtilsBenchmark {
|
|||
this.value2 = value2;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -35,19 +35,20 @@ import org.springframework.core.testfixture.codec.AbstractDecoderTests;
|
|||
*
|
||||
* @author Jason Laber
|
||||
*/
|
||||
public class CustomizedJackson2JsonDecoderTests extends AbstractDecoderTests<Jackson2JsonDecoder> {
|
||||
class CustomizedJackson2JsonDecoderTests extends AbstractDecoderTests<Jackson2JsonDecoder> {
|
||||
|
||||
public CustomizedJackson2JsonDecoderTests() {
|
||||
CustomizedJackson2JsonDecoderTests() {
|
||||
super(new Jackson2JsonDecoderWithCustomization());
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void canDecode() throws Exception {
|
||||
// Not Testing, covered under Jackson2JsonDecoderTests
|
||||
}
|
||||
|
||||
@Override
|
||||
@Test
|
||||
@Override
|
||||
public void decode() throws Exception {
|
||||
Flux<DataBuffer> input = Flux.concat(stringBuffer("{\"property\":\"Value1\"}"));
|
||||
|
||||
|
@ -56,8 +57,8 @@ public class CustomizedJackson2JsonDecoderTests extends AbstractDecoderTests<Jac
|
|||
.verifyComplete());
|
||||
}
|
||||
|
||||
@Override
|
||||
@Test
|
||||
@Override
|
||||
public void decodeToMono() throws Exception {
|
||||
Mono<DataBuffer> input = stringBuffer("{\"property\":\"Value2\"}");
|
||||
|
||||
|
@ -91,6 +92,7 @@ public class CustomizedJackson2JsonDecoderTests extends AbstractDecoderTests<Jac
|
|||
return property;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public void setProperty(MyCustomDecoderEnum property) {
|
||||
this.property = property;
|
||||
}
|
||||
|
|
|
@ -35,9 +35,9 @@ import static org.springframework.http.MediaType.APPLICATION_NDJSON;
|
|||
*
|
||||
* @author Jason Laber
|
||||
*/
|
||||
public class CustomizedJackson2JsonEncoderTests extends AbstractEncoderTests<Jackson2JsonEncoder> {
|
||||
class CustomizedJackson2JsonEncoderTests extends AbstractEncoderTests<Jackson2JsonEncoder> {
|
||||
|
||||
public CustomizedJackson2JsonEncoderTests() {
|
||||
CustomizedJackson2JsonEncoderTests() {
|
||||
super(new Jackson2JsonEncoderWithCustomization());
|
||||
}
|
||||
|
||||
|
@ -47,8 +47,8 @@ public class CustomizedJackson2JsonEncoderTests extends AbstractEncoderTests<Jac
|
|||
// Not Testing, covered under Jackson2JsonEncoderTests
|
||||
}
|
||||
|
||||
@Override
|
||||
@Test
|
||||
@Override
|
||||
public void encode() throws Exception {
|
||||
Flux<MyCustomizedEncoderBean> input = Flux.just(
|
||||
new MyCustomizedEncoderBean(MyCustomEncoderEnum.VAL1),
|
||||
|
@ -63,7 +63,7 @@ public class CustomizedJackson2JsonEncoderTests extends AbstractEncoderTests<Jac
|
|||
}
|
||||
|
||||
@Test
|
||||
public void encodeNonStream() {
|
||||
void encodeNonStream() {
|
||||
Flux<MyCustomizedEncoderBean> input = Flux.just(
|
||||
new MyCustomizedEncoderBean(MyCustomEncoderEnum.VAL1),
|
||||
new MyCustomizedEncoderBean(MyCustomEncoderEnum.VAL2)
|
||||
|
@ -85,10 +85,12 @@ public class CustomizedJackson2JsonEncoderTests extends AbstractEncoderTests<Jac
|
|||
this.property = property;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public MyCustomEncoderEnum getProperty() {
|
||||
return property;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public void setProperty(MyCustomEncoderEnum property) {
|
||||
this.property = property;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue