Skip to content

Commit

Permalink
Fix for e43 build
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-milles committed Apr 12, 2017
1 parent f6d93bc commit 0dcfc2a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,17 +140,15 @@ final class AnnotationCompletionTests extends CompletionTestCase {
}

void testAnnoAttr2() {
EclipseTestSetup.addJUnit4()
String contents = '''\
import org.junit.Test
class SomeTest {
@Test()
void testSomething() { }
import javax.xml.bind.annotation.*
@XmlAnyElement()
class Something {
}
'''.stripIndent()
def proposals = getProposals(contents, '@Test(')
def proposals = getProposals(contents, '@XmlAnyElement(')

assertThat(proposals).includes('expected', 'timeout')
assertThat(proposals).includes('lax', 'value')
}

//--------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2009-2016 the original author or authors.
* Copyright 2009-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -38,17 +38,14 @@ final class CodeSelectAttributesTests extends BrowsingTestCase {
}

void testCodeSelectOnAttributeName2() {
EclipseTestSetup.addJUnit4()

String source = '''\
import javax.xml.bind.annotation.*
@XmlAnyElement(lax=true)
class C {
@org.junit.Test(timeout=1234L)
void testSomething() {
}
}
'''.stripIndent()

def elem = assertCodeSelect([source], 'timeout')
def elem = assertCodeSelect([source], 'lax')
assert elem.inferredElement instanceof MethodNode
}

Expand Down

0 comments on commit 0dcfc2a

Please sign in to comment.