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 { public class BeanGeneratorTest {
@Test @Test
public void givenBeanCreator_whenAddPropery_classShouldHaveFieldValue() throws Exception { public void givenBeanCreator_whenAddProperty_thenClassShouldHaveFieldValue() throws Exception {
//given //given
BeanGenerator beanGenerator = new BeanGenerator(); BeanGenerator beanGenerator = new BeanGenerator();

View File

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

View File

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