Skip to content

Commit

Permalink
Fixing style
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemures committed Aug 7, 2019
1 parent 875f47a commit 4ef78b1
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions toothpick-runtime/src/test/java/toothpick/ToothpickTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@
*/
package toothpick;

import org.junit.After;
import org.junit.Test;
import org.mockito.Mockito;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

import toothpick.configuration.Configuration;
import toothpick.configuration.MultipleRootException;

import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.CoreMatchers.notNullValue;
Expand All @@ -36,6 +26,14 @@
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import org.junit.After;
import org.junit.Test;
import org.mockito.Mockito;
import toothpick.configuration.Configuration;
import toothpick.configuration.MultipleRootException;

public class ToothpickTest {

@Test
Expand Down Expand Up @@ -220,8 +218,7 @@ public void closeScope_shouldMarkThisScopeAsClosed() {
}

@Test(expected = MultipleRootException.class)
public void
opening2rootScope_shouldPass_whenSameRootScope() {
public void opening2rootScope_shouldPass_whenSameRootScope() {
// GIVEN
Toothpick.setConfiguration(Configuration.forDevelopment().preventMultipleRootScopes());
Toothpick.openScope("foo");
Expand All @@ -233,8 +230,7 @@ public void closeScope_shouldMarkThisScopeAsClosed() {
}

@Test
public void
opening2rootScope_shouldPass_whenConfigurationDoesNotPreventsMultipleRootScopes() {
public void opening2rootScope_shouldPass_whenConfigurationDoesNotPreventsMultipleRootScopes() {
// GIVEN
Toothpick.setConfiguration(Configuration.forDevelopment());
Toothpick.openScope("foo");
Expand Down Expand Up @@ -395,14 +391,14 @@ public void isScopeOpen_shouldReturnFalse_WhenParentScopesWasClosed() {

@Test
public void release_shouldCallScopeRelease() {
//GIVEN
// GIVEN
Scope scope = mock(ScopeNode.class);
doNothing().when(scope).release();

//WHEN
// WHEN
Toothpick.release(scope);

//THEN
// THEN
verify(scope, Mockito.atLeastOnce()).release();
}

Expand Down

0 comments on commit 4ef78b1

Please sign in to comment.