Polishing

This commit is contained in:
Juergen Hoeller
2015-03-05 18:56:57 +01:00
parent 1e26d17a3d
commit b541fc9366
10 changed files with 65 additions and 63 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2013 the original author or authors.
* Copyright 2002-2015 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.
@@ -35,6 +35,7 @@ public class ByteBufferConverterTests {
private GenericConversionService conversionService;
@Before
public void setup() {
this.conversionService = new GenericConversionService();
@@ -43,6 +44,7 @@ public class ByteBufferConverterTests {
this.conversionService.addConverter(new OtherTypeToByteArrayConverter());
}
@Test
public void byteArrayToByteBuffer() throws Exception {
byte[] bytes = new byte[] { 1, 2, 3 };
@@ -78,6 +80,7 @@ public class ByteBufferConverterTests {
assertThat(bytes, equalTo(convert.array()));
}
private static class OtherType {
private byte[] bytes;
@@ -88,8 +91,8 @@ public class ByteBufferConverterTests {
}
private static class ByteArrayToOtherTypeConverter implements
Converter<byte[], OtherType> {
private static class ByteArrayToOtherTypeConverter implements Converter<byte[], OtherType> {
@Override
public OtherType convert(byte[] source) {
@@ -97,8 +100,8 @@ public class ByteBufferConverterTests {
}
}
private static class OtherTypeToByteArrayConverter implements
Converter<OtherType, byte[]> {
private static class OtherTypeToByteArrayConverter implements Converter<OtherType, byte[]> {
@Override
public byte[] convert(OtherType source) {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2013 the original author or authors.
* Copyright 2002-2015 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.
@@ -34,7 +34,6 @@ import static java.lang.String.*;
*/
public enum TestGroup {
/**
* Tests that take a considerable amount of time to run. Any test lasting longer than
* 500ms should be considered a candidate in order to avoid making the overall test
@@ -68,6 +67,7 @@ public enum TestGroup {
*/
CUSTOM_COMPILATION;
/**
* Parse the specified comma separated string of groups.
* @param value the comma separated string of groups
@@ -102,4 +102,5 @@ public enum TestGroup {
}
return groups;
}
}