Permalink
Browse files

Added regression test for ticket 1000625

  • Loading branch information...
1 parent c56c19d commit 533ae1f5a4980a6e68fb11ca91e3d3b9490d91a2 @dotta dotta committed Sep 30, 2011
@@ -250,4 +250,23 @@ class StructureBuilderTest {
// verify
verify(requestor, times(0)).acceptProblem(any())
}
+
+ @Test
+ def exposeJavaGenericSigOfScalaClass() {
+ //when
+ val requestor = mock(classOf[IProblemRequestor])
+ when(requestor.isActive()).thenReturn(true)
+
+ val owner = mock(classOf[WorkingCopyOwner])
+ when(owner.getProblemRequestor(any())).thenReturn(requestor)
+
+ val unit = compilationUnit("t1000625/MyFoo.java")
+
+ // then
+ // this will trigger the java reconciler so that the problems will be reported to the `requestor`
+ unit.getWorkingCopy(owner, new NullProgressMonitor)
+
+ // verify
+ verify(requestor, times(0)).acceptProblem(any())
+ }
}
@@ -0,0 +1,3 @@
+package t1000625
+
+class Foo[T] {}
@@ -0,0 +1,3 @@
+package t1000625;
+
+class MyFoo extends Foo<Integer> {}

0 comments on commit 533ae1f

Please sign in to comment.