Polishing

This commit is contained in:
Juergen Hoeller
2017-06-26 18:59:17 +02:00
parent 098ff6f0f8
commit 140542e8b1
3 changed files with 17 additions and 22 deletions

View File

@@ -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);
}
}