BAEL-633 Small refactoring

This commit is contained in:
Pedja 2017-02-22 12:58:04 +01:00
parent 9d71f7295b
commit dbc52e8654
3 changed files with 6 additions and 6 deletions

View File

@ -11,7 +11,7 @@ import static junit.framework.TestCase.assertEquals;
public class BeanGeneratorTest {
@Test
public void givenBeanCreator_whenAddPropery_classShouldHaveFieldValue() throws Exception {
public void givenBeanCreator_whenAddProperty_thenClassShouldHaveFieldValue() throws Exception {
//given
BeanGenerator beanGenerator = new BeanGenerator();

View File

@ -9,7 +9,7 @@ import static junit.framework.TestCase.assertEquals;
public class MixinTest {
@Test
public void givenTwoClasses_whenMixtThemIntoOne_mixinShouldHaveMethodsFromBothClasses() throws Exception {
public void givenTwoClasses_whenMixedIntoOne_thenMixinShouldHaveMethodsFromBothClasses() throws Exception {
//when
Mixin mixin = Mixin.create(
new Class[]{Interface1.class, Interface2.class, MixinInterface.class},

View File

@ -7,9 +7,9 @@ import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class PersonServiceProxyTest {
public class ProxyTest {
@Test
public void givenPersonService_whenSayHello_shouldReturnResult() {
public void givenPersonService_whenSayHello_thenReturnResult() {
//given
PersonService personService = new PersonService();
@ -21,7 +21,7 @@ public class PersonServiceProxyTest {
}
@Test
public void givenEnhancerProxy_whenExtendPersonService_shouldInterceptMethod() throws Exception {
public void givenEnhancerProxy_whenExtendPersonService_thenInterceptMethod() throws Exception {
//given
Enhancer enhancer = new Enhancer();
enhancer.setSuperclass(PersonService.class);
@ -36,7 +36,7 @@ public class PersonServiceProxyTest {
}
@Test
public void givenEnhancer_whenExecuteMethodOnProxy_shouldInterceptOnlyStringReturnTypeMethod() throws Exception {
public void givenEnhancer_whenExecuteMethodOnProxy_thenInterceptOnlyStringReturnTypeMethod() throws Exception {
//given
Enhancer enhancer = new Enhancer();
enhancer.setSuperclass(PersonService.class);