Polishing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -44,14 +44,16 @@ public class MarshallingMessageConverterTests {
|
||||
|
||||
private Session sessionMock;
|
||||
|
||||
|
||||
@Before
|
||||
public void setUp() throws Exception {
|
||||
public void setup() throws Exception {
|
||||
marshallerMock = mock(Marshaller.class);
|
||||
unmarshallerMock = mock(Unmarshaller.class);
|
||||
sessionMock = mock(Session.class);
|
||||
converter = new MarshallingMessageConverter(marshallerMock, unmarshallerMock);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void toBytesMessage() throws Exception {
|
||||
BytesMessage bytesMessageMock = mock(BytesMessage.class);
|
||||
@@ -102,4 +104,5 @@ public class MarshallingMessageConverterTests {
|
||||
Object result = converter.fromMessage(textMessageMock);
|
||||
assertEquals("Invalid result", result, unmarshalled);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user