Fix the imports
After removing the implements of functional interfaces Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
7ad4d4e308
commit
785c4cb9b9
|
@ -22,9 +22,6 @@ import java.util.Map;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import io.cloudevents.v02.http.BinaryFormatAttributeMapperImpl;
|
|
||||||
import io.cloudevents.v02.http.BinaryFormatHeaderMapperImpl;
|
|
||||||
|
|
||||||
public class HttpTransportAttributesTest {
|
public class HttpTransportAttributesTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -40,7 +37,7 @@ public class HttpTransportAttributesTest {
|
||||||
myHeaders.put("Content-Type", "application/json");
|
myHeaders.put("Content-Type", "application/json");
|
||||||
|
|
||||||
// act
|
// act
|
||||||
Map<String, String> attributes = BinaryFormatAttributeMapperImpl.map(myHeaders);
|
Map<String, String> attributes = io.cloudevents.v02.http.AttributeMapper.map(myHeaders);
|
||||||
|
|
||||||
// assert
|
// assert
|
||||||
assertEquals("0x11", attributes.get("id"));
|
assertEquals("0x11", attributes.get("id"));
|
||||||
|
@ -65,7 +62,7 @@ public class HttpTransportAttributesTest {
|
||||||
attributes.put("contenttype", "application/json");
|
attributes.put("contenttype", "application/json");
|
||||||
|
|
||||||
// act
|
// act
|
||||||
Map<String, Object> headers = BinaryFormatHeaderMapperImpl
|
Map<String, Object> headers = io.cloudevents.v02.http.HeaderMapper
|
||||||
.map(attributes, new HashMap<String, String>());
|
.map(attributes, new HashMap<String, String>());
|
||||||
|
|
||||||
// assert
|
// assert
|
||||||
|
@ -93,7 +90,7 @@ public class HttpTransportAttributesTest {
|
||||||
myHeaders.put("ce-subject", "the subject");
|
myHeaders.put("ce-subject", "the subject");
|
||||||
|
|
||||||
// act
|
// act
|
||||||
Map<String, String> attributes = io.cloudevents.v03.http.BinaryFormatAttributeMapperImpl.map(myHeaders);
|
Map<String, String> attributes = io.cloudevents.v03.http.AttributeMapper.map(myHeaders);
|
||||||
|
|
||||||
// assert
|
// assert
|
||||||
assertEquals("0x11", attributes.get("id"));
|
assertEquals("0x11", attributes.get("id"));
|
||||||
|
|
Loading…
Reference in New Issue