Skip to content

Commit 28d56ec

Browse files
committed
DATAMONGO-1437 - Polishing.
Renamed test. Added JavaDoc. Simplify throws declaration. Original pull request: #367.
1 parent 1ba8b91 commit 28d56ec

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,13 @@
3333

3434
import com.mongodb.DBRef;
3535

36+
/**
37+
* Unit tests for {@link LazyLoadingInterceptor}.
38+
*
39+
* @author Christoph Strobl
40+
*/
3641
@RunWith(MockitoJUnitRunner.class)
37-
public class LazyLoadingInterceptorUntiTests {
42+
public class LazyLoadingInterceptorUnitTests {
3843

3944
public @Rule ExpectedException exception = ExpectedException.none();
4045

@@ -46,8 +51,7 @@ public class LazyLoadingInterceptorUntiTests {
4651
* @see DATAMONGO-1437
4752
*/
4853
@Test
49-
public void shouldPreserveCauseForNonTranslatableExceptions()
50-
throws NoSuchMethodException, SecurityException, Throwable {
54+
public void shouldPreserveCauseForNonTranslatableExceptions() throws Throwable {
5155

5256
NullPointerException npe = new NullPointerException("Some Exception we did not think about.");
5357
when(callbackMock.resolve(propertyMock)).thenThrow(npe);

0 commit comments

Comments
 (0)