Skip to content

Commit

Permalink
Organized imports
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Jul 17, 2014
1 parent 685f420 commit 1b2392b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
import org.jboss.forge.addon.ui.context.UIBuilder;
import org.jboss.forge.addon.ui.context.UIContext;
import org.jboss.forge.addon.ui.context.UIExecutionContext;
import org.jboss.forge.addon.ui.facets.HintsFacet;
import org.jboss.forge.addon.ui.hints.InputType;
import org.jboss.forge.addon.ui.input.InputComponentFactory;
import org.jboss.forge.addon.ui.input.UIPrompt;
import org.jboss.forge.addon.ui.input.UISelectMany;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

import java.io.FileNotFoundException;

import javax.inject.Inject;

import org.jboss.arquillian.container.test.api.Deployment;
Expand Down Expand Up @@ -85,6 +83,7 @@ public void setup() throws Exception
facetFactory.install(project, JavaSourceFacet.class);
}

@SuppressWarnings("unchecked")
@Test
public void testNoEqualsAndHashcode() throws Exception
{
Expand All @@ -109,6 +108,7 @@ public void testNoEqualsAndHashcode() throws Exception
assertNotNull(targetClass.getMethod("hashCode"));
}

@SuppressWarnings("unchecked")
@Test
public void testHashCodeAndEqualsAlreadyInClass() throws Exception
{
Expand Down Expand Up @@ -147,6 +147,7 @@ public void testHashCodeAndEqualsAlreadyInClass() throws Exception
assertEquals("return 1111;\n ", hashCodeMethod.getBody());
}

@SuppressWarnings("unchecked")
@Test
public void testHashCodeAlreadyInClass() throws Exception
{
Expand Down Expand Up @@ -176,9 +177,10 @@ public void testHashCodeAlreadyInClass() throws Exception
MethodSource<JavaClassSource> hashCodeMethod = targetClass.getMethod("hashCode");
assertNotNull(hashCodeMethod);
String body = hashCodeMethod.getBody();
assertEquals("return 1111;\n ", hashCodeMethod.getBody());
assertEquals("return 1111;\n ", body);
}

@SuppressWarnings("unchecked")
@Test
public void testEqualsAlreadyInClass() throws Exception
{
Expand Down

0 comments on commit 1b2392b

Please sign in to comment.