Skip to content

Commit cf54ba4

Browse files
committed
DATAES-46 - Apply code formatting
1 parent 705adf2 commit cf54ba4

File tree

1 file changed

+24
-25
lines changed

1 file changed

+24
-25
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013 the original author or authors.
2+
* Copyright 2014 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -32,28 +32,27 @@
3232
@RunWith(MockitoJUnitRunner.class)
3333
public class ElasticsearchEntityInformationCreatorImplTest {
3434

35-
@Mock
36-
private MappingContext<? extends ElasticsearchPersistentEntity<?>, ElasticsearchPersistentProperty> mappingContext;
37-
@Mock
38-
private ElasticsearchPersistentEntity<String> persistentEntity;
39-
private ElasticsearchEntityInformationCreatorImpl entityInfoCreator;
40-
41-
@Before
42-
public void before() {
43-
entityInfoCreator = new ElasticsearchEntityInformationCreatorImpl(mappingContext);
44-
}
45-
46-
@Test(expected = IllegalArgumentException.class)
47-
public void shouldThrowIllegalArgumentExceptionOnMissingEntity() {
48-
entityInfoCreator.getEntityInformation(String.class);
49-
}
50-
51-
@Test(expected = IllegalArgumentException.class)
52-
public void shouldThrowIllegalArgumentExceptionOnMissingIdAnnotation() {
53-
doReturn(persistentEntity).when(mappingContext).getPersistentEntity(String.class);
54-
doReturn(String.class).when(persistentEntity).getType();
55-
doReturn(null).when(persistentEntity).getIdProperty();
56-
entityInfoCreator.getEntityInformation(String.class);
57-
}
58-
35+
@Mock
36+
private MappingContext<? extends ElasticsearchPersistentEntity<?>, ElasticsearchPersistentProperty> mappingContext;
37+
@Mock
38+
private ElasticsearchPersistentEntity<String> persistentEntity;
39+
private ElasticsearchEntityInformationCreatorImpl entityInfoCreator;
40+
41+
@Before
42+
public void before() {
43+
entityInfoCreator = new ElasticsearchEntityInformationCreatorImpl(mappingContext);
44+
}
45+
46+
@Test(expected = IllegalArgumentException.class)
47+
public void shouldThrowIllegalArgumentExceptionOnMissingEntity() {
48+
entityInfoCreator.getEntityInformation(String.class);
49+
}
50+
51+
@Test(expected = IllegalArgumentException.class)
52+
public void shouldThrowIllegalArgumentExceptionOnMissingIdAnnotation() {
53+
doReturn(persistentEntity).when(mappingContext).getPersistentEntity(String.class);
54+
doReturn(String.class).when(persistentEntity).getType();
55+
doReturn(null).when(persistentEntity).getIdProperty();
56+
entityInfoCreator.getEntityInformation(String.class);
57+
}
5958
}

0 commit comments

Comments
 (0)