Skip to content

Commit

Permalink
ROASTER-117: Add ignored test case
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Jan 16, 2017
1 parent ec80034 commit c9398a2
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,20 @@
*/
package org.jboss.forge.test.roaster.model;

import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import org.jboss.forge.roaster.Roaster;
import org.jboss.forge.roaster.model.JavaInterface;
import org.jboss.forge.roaster.model.source.JavaClassSource;
import org.jboss.forge.roaster.model.source.JavaInterfaceSource;
import org.jboss.forge.roaster.model.source.TypeVariableSource;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;

public class JavaClassGenericsTest
Expand Down Expand Up @@ -196,4 +201,14 @@ public void getClassGenericsName() throws ClassNotFoundException
Assert.assertEquals("O", typeVariables.get(1).getName());
Assert.assertTrue(typeVariables.get(1).getBounds().isEmpty());
}

@Test
@Ignore("Reproduces ROASTER-117")
public void testNestedGenericsInSuperType() throws Exception
{
JavaClassSource javaClass = Roaster.create(JavaClassSource.class);
javaClass.setSuperType("SomeClass<java.util.Map<String,SomeOtherClass>>");
Assert.assertThat(javaClass.hasImport(Map.class), is(true));
Assert.assertThat(javaClass.getSuperType(), equalTo("SomeClass<Map<String,SomeOtherClass>>"));
}
}

0 comments on commit c9398a2

Please sign in to comment.