Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail on Windows #996

Closed
snjeza opened this issue Apr 16, 2019 · 2 comments · Fixed by #1661
Closed

Tests fail on Windows #996

snjeza opened this issue Apr 16, 2019 · 2 comments · Fixed by #1661
Assignees
Labels

Comments

@snjeza
Copy link
Contributor

snjeza commented Apr 16, 2019

Results:

Failures:
  CompletionHandlerTest.testSnippet_class:958 expected:<...age org.sample;

/**[
 * Test
 */
public class Test {

        ${0}]
}> but was:<...age org.sample;

/**[
 * Test
 */
public class Test {

]       ${0}
}>
  CompletionHandlerTest.testSnippet_interface:859 expected:<...age org.sample;

/**[
 * Test
 */
public interface Test {

        ${0}]
}> but was:<...age org.sample;

/**[
 * Test
 */
public interface Test {

]       ${0}
}>
  HoverHandlerTest.testHoverJavadocWithExtraTags:500 Unexpected hover  expected:<Some text.[

 *  **Since:**

     *  9
 *  **@uses**

     *  java.sql.Driver]
 *  **@moduleGraph*...> but was:<Some text.[

 *  **Since:**

     *  9
 *  **@uses**

]    *  java.sql.Driver
 *  **@moduleGraph*...>
  HoverHandlerTest.testHoverOnJavadocWithMultipleDifferentTypesOfTags:445->AbstractProjectsManagerBasedTest.assertMatches:305 This Javadoc contains a link to [newMethodBeingLinkedToo](file:/C:/jbtgit/eclipse.jdt.ls/org.eclipse.jdt.ls.tests/target/workingProjects/maven/salut/src/main/java/java/Foo2.java#23)

 *  **Parameters:**

     *  **someString** the string to enter
 *  **Returns:**

     *  String
 *  **Throws:**

     *  IOException
 *  **Since:**

     *  0.0.1
 *  **Version:**

     *  0.0.1
 *  **Author:**

     *  jpinkney
 *  **See Also:**

     *  [Online docs for java](https://docs.oracle.com/javase/7/docs/api/) doesn't match pattern: This Javadoc contains a link to \[newMethodBeingLinkedToo\]\(file:/.*/salut/src/main/java/java/Foo2.java#23\)

 \*  \*\*Parameters:\*\*

     \*  \*\*someString\*\* the string to enter
 \*  \*\*Returns:\*\*

     \*  String
 \*  \*\*Throws:\*\*

     \*  IOException
 \*  \*\*Since:\*\*

     \*  0.0.1
 \*  \*\*Version:\*\*

     \*  0.0.1
 \*  \*\*Author:\*\*

     \*  jpinkney
 \*  \*\*See Also:\*\*

     \*  \[Online docs for java\]\(https://docs.oracle.com/javase/7/docs/api/\)
  SaveActionHandlerTest.testWillSaveWaitUntil:77 expected:<package java;[

public class Foo4 {
]
> but was:<package java;[

public class Foo4 {
}]
>
  WorkspaceDiagnosticsHandlerTest.testMissingNatures:264
  WorkspaceDiagnosticsHandlerTest.testProjectLevelMarkers:234 No maven/broken errors were found
  JavaDoc2MarkdownConverterTest.testAuthorTag:188 expected:< *  **Author:**[
    ]
     *  someAuthor> but was:< *  **Author:**[
]
     *  someAuthor>
  JavaDoc2MarkdownConverterTest.testParamTag:156 expected:< *  **Parameters:**[
    ]
     *  **someStrin...> but was:< *  **Parameters:**[
]
     *  **someStrin...>
  JavaDoc2MarkdownConverterTest.testSeeTag:148 expected:< *  **See Also:**[
    ]
     *  [Online doc...> but was:< *  **See Also:**[
]
     *  [Online doc...>
  JavaDoc2MarkdownConverterTest.testSinceTag:164 expected:< *  **Since:**[
    ]
     *  0.0.1> but was:< *  **Since:**[
]
     *  0.0.1>
  JavaDoc2MarkdownConverterTest.testThrowsTag:180 expected:< *  **Throws:**[
    ]
     *  IOException> but was:< *  **Throws:**[
]
     *  IOException>
  JavaDoc2MarkdownConverterTest.testVersionTag:172 expected:< *  @version[
    ]
     *  0.0.1> but was:< *  @version[
]
     *  0.0.1>
Errors:
  CodeActionHandlerTest.testCodeAction_removeUnusedImport - Completion java.lang...
  InitHandlerTest.testInitOnSymbolicLinkFolder:260 - FileSystem C:\Users\Snjeza\...
org.eclipse.jdt.ls.core.internal.handlers.NavigateToTypeDefinitionHandlerTest.testAttachedSource(org.eclipse.jdt.ls.core.internal.handlers.NavigateToTypeDefinitionHandlerTest)
  Run 1: NavigateToTypeDefinitionHandlerTest.setUp:43->AbstractProjectsManagerBasedTest.importProjects:189->AbstractProjectsManagerBasedTest.importProjects:197->AbstractProjectsManagerBasedTest.importProjects:203->AbstractProjectsManagerBasedTest.copyFiles:271 - IO
  Run 2: NavigateToTypeDefinitionHandlerTest>AbstractProjectsManagerBasedTest.cleanUp:237 - IO

org.eclipse.jdt.ls.core.internal.handlers.NavigateToTypeDefinitionHandlerTest.testClassField(org.eclipse.jdt.ls.core.internal.handlers.NavigateToTypeDefinitionHandlerTest)
  Run 1: NavigateToTypeDefinitionHandlerTest.setUp:43->AbstractProjectsManagerBasedTest.importProjects:189->AbstractProjectsManagerBasedTest.importProjects:197->AbstractProjectsManagerBasedTest.importProjects:203->AbstractProjectsManagerBasedTest.copyFiles:271 - IO
  Run 2: NavigateToTypeDefinitionHandlerTest>AbstractProjectsManagerBasedTest.cleanUp:237 - IO

org.eclipse.jdt.ls.core.internal.handlers.NavigateToTypeDefinitionHandlerTest.testExternalClassField(org.eclipse.jdt.ls.core.internal.handlers.NavigateToTypeDefinitionHandlerTest)
  Run 1: NavigateToTypeDefinitionHandlerTest.setUp:43->AbstractProjectsManagerBasedTest.importProjects:189->AbstractProjectsManagerBasedTest.importProjects:197->AbstractProjectsManagerBasedTest.importProjects:203->AbstractProjectsManagerBasedTest.copyFiles:271 - IO
  Run 2: NavigateToTypeDefinitionHandlerTest>AbstractProjectsManagerBasedTest.cleanUp:237 - IO

org.eclipse.jdt.ls.core.internal.handlers.NavigateToTypeDefinitionHandlerTest.testGetEmptyDefinition(org.eclipse.jdt.ls.core.internal.handlers.NavigateToTypeDefinitionHandlerTest)
  Run 1: NavigateToTypeDefinitionHandlerTest.setUp:43->AbstractProjectsManagerBasedTest.importProjects:189->AbstractProjectsManagerBasedTest.importProjects:197->AbstractProjectsManagerBasedTest.importProjects:203->AbstractProjectsManagerBasedTest.copyFiles:271 - IO
  Run 2: NavigateToTypeDefinitionHandlerTest>AbstractProjectsManagerBasedTest.cleanUp:237 - IO

org.eclipse.jdt.ls.core.internal.handlers.NavigateToTypeDefinitionHandlerTest.testLocalVariable(org.eclipse.jdt.ls.core.internal.handlers.NavigateToTypeDefinitionHandlerTest)
  Run 1: NavigateToTypeDefinitionHandlerTest.setUp:43->AbstractProjectsManagerBasedTest.importProjects:189->AbstractProjectsManagerBasedTest.importProjects:197->AbstractProjectsManagerBasedTest.importProjects:203->AbstractProjectsManagerBasedTest.copyFiles:271 - IO
  Run 2: NavigateToTypeDefinitionHandlerTest>AbstractProjectsManagerBasedTest.cleanUp:237 - IO

org.eclipse.jdt.ls.core.internal.handlers.NavigateToTypeDefinitionHandlerTest.testNoClassContentSupport(org.eclipse.jdt.ls.core.internal.handlers.NavigateToTypeDefinitionHandlerTest)
  Run 1: NavigateToTypeDefinitionHandlerTest.setUp:43->AbstractProjectsManagerBasedTest.importProjects:189->AbstractProjectsManagerBasedTest.importProjects:197->AbstractProjectsManagerBasedTest.importProjects:203->AbstractProjectsManagerBasedTest.copyFiles:271 - IO
  Run 2: NavigateToTypeDefinitionHandlerTest>AbstractProjectsManagerBasedTest.cleanUp:237 - IO

  WorkspaceDiagnosticsHandlerTest>AbstractProjectsManagerBasedTest.cleanUp:237 - IO
org.eclipse.jdt.ls.core.internal.handlers.WorkspaceDiagnosticsHandlerTest.testMissingDependencies(org.eclipse.jdt.ls.core.internal.handlers.WorkspaceDiagnosticsHandlerTest)
  Run 1: WorkspaceDiagnosticsHandlerTest.testMissingDependencies:318->testDiagnostic:357 No maven/salut errors were found
  Run 2: WorkspaceDiagnosticsHandlerTest>AbstractProjectsManagerBasedTest.cleanUp:237 - IO

org.eclipse.jdt.ls.core.internal.handlers.WorkspaceDiagnosticsHandlerTest.testProjectConfigurationIsNotUpToDate(org.eclipse.jdt.ls.core.internal.handlers.WorkspaceDiagnosticsHandlerTest)
  Run 1: WorkspaceDiagnosticsHandlerTest.testProjectConfigurationIsNotUpToDate:271->AbstractProjectsManagerBasedTest.importProjects:189->AbstractProjectsManagerBasedTest.importProjects:197->AbstractProjectsManagerBasedTest.importProjects:203->AbstractProjectsManagerBasedTest.copyFiles:271 - IO
  Run 2: WorkspaceDiagnosticsHandlerTest>AbstractProjectsManagerBasedTest.cleanUp:237 - IO

org.eclipse.jdt.ls.core.internal.handlers.WorkspaceDiagnosticsHandlerTest.testResetPomDiagnostics(org.eclipse.jdt.ls.core.internal.handlers.WorkspaceDiagnosticsHandlerTest)
  Run 1: WorkspaceDiagnosticsHandlerTest.testResetPomDiagnostics:405 file:///C:/jbtgit/eclipse.jdt.ls/org.eclipse.jdt.ls.tests/target/workingProjects/maven/multimodule/module1/childmodule//pom.xml
  Run 2: WorkspaceDiagnosticsHandlerTest>AbstractProjectsManagerBasedTest.cleanUp:237 - IO

  WorkspaceDiagnosticsHandlerTest>AbstractProjectsManagerBasedTest.cleanUp:237 - IO
  BasicFileDetectorTest.testScanCircularSymbolicLinks:114 - FileSystem C:\Users\...
  BasicFileDetectorTest.testScanSymbolicLinks:92 - FileSystem C:\Users\Snjeza\Ap...

Tests run: 910, Failures: 13, Errors: 15, Skipped: 14
@snjeza snjeza self-assigned this Apr 16, 2019
@fbricon fbricon added the debt label Apr 25, 2019
@yyy2015
Copy link

yyy2015 commented Oct 15, 2019

I have the same problem. Do you fix it?

@yyy2015
Copy link

yyy2015 commented Oct 15, 2019

Results:

Failures:
  UnresolvedTypesQuickFixTest.testParameterizedType1:876->AbstractQuickFixTest.assertCodeActions:95->AbstractQuickFixTest.assertCodeActions:115 Create class 'XXY<T>' has the wrong content  expected:<package test1;[

public class XXY<T> {

}]
> but was:<package test1;[

public class XXY<T> {

]
>
  UnresolvedTypesQuickFixTest.testQualifiedType:491->AbstractQuickFixTest.assertCodeActions:95->AbstractQuickFixTest.assertCodeActions:115 Create class 'Test' in package 'test2' has the wrong content  expected:<package test2;[

public class Test {

}]
> but was:<package test2;[

public class Test {

]
>
  UnresolvedTypesQuickFixTest.testTypeInAnnotation:630->AbstractQuickFixTest.assertCodeActionExists:72 Create annotation 'Xyz' has the wrong content  expected:<package test1;[

public @interface Xyz {

}]
> but was:<package test1;[

public @interface Xyz {

]
>
  UnresolvedTypesQuickFixTest.testTypeInAnnotation_bug153881:651->AbstractQuickFixTest.assertCodeActions:95->AbstractQuickFixTest.assertCodeActions:115 Create annotation 'Unimportant' in package 'scratch' has the wrong content  expected:<package scratch;[

public @interface Unimportant {

}]
> but was:<package scratch;[

public @interface Unimportant {

]
>
  UnresolvedTypesQuickFixTest.testTypeInSuperInterface:609->AbstractQuickFixTest.assertCodeActionExists:72 Create interface 'XXX' has the wrong content  expected:<package test1;[

public interface XXX {

}]
> but was:<package test1;[

public interface XXX {

]
>
  UnresolvedTypesQuickFixTest.testTypeInSuperType:589->AbstractQuickFixTest.assertCodeActionExists:72 Create class 'XXX' has the wrong content  expected:<package test1;[

public class XXX {

}]
> but was:<package test1;[

public class XXX {

]
>
  CompletionHandlerTest.testSnippet_class:979 expected:<...age org.sample;

/**[
 * Test
 */
public class Test {

        ${0}]
}> but was:<...age org.sample;

/**[
 * Test
 */
public class Test {

]       ${0}
}>
  CompletionHandlerTest.testSnippet_interface:880 expected:<...age org.sample;

/**[
 * Test
 */
public interface Test {

        ${0}]
}> but was:<...age org.sample;

/**[
 * Test
 */
public interface Test {

]       ${0}
}>
  HoverHandlerTest.testHoverJavadocWithExtraTags:526 Unexpected hover  expected:<Some text.[

 *  **Since:**

     *  9
 *  **@uses**

     *  java.sql.Driver]
 *  **@moduleGraph*...> but was:<Some text.[

 *  **Since:**

     *  9
 *  **@uses**

]    *  java.sql.Driver
 *  **@moduleGraph*...>
  HoverHandlerTest.testHoverOnJavadocWithMultipleDifferentTypesOfTags:471->AbstractProjectsManagerBasedTest.assertMatches:329 The `String` class represents character strings. All string literals in Java programs, such as `"abc"`, are implemented as instances of this class.

Strings are constant; their values cannot be changed after they are created. String buffers support mutable strings. Because String objects are immutable they can be shared. For example:

>     String str = "abc";

is equivalent to:

>     char data[] = {'a', 'b', 'c'};
>          String str = new String(data);

Here are some more examples of how strings can be used:

>     System.out.println("abc");
>          String cde = "cde";
>          System.out.println("abc" + cde);
>          String c = "abc".substring(2,3);
>          String d = cde.substring(1, 2);

The class `String` includes methods for examining individual characters of the sequence, for comparing strings, for searching strings, for extracting substrings, and for creating a copy of a string with all characters translated to uppercase or to lowercase. Case mapping is based on the Unicode Standard version specified by the `Character` class.

The Java language provides special support for the string concatenation operator (?+?), and for conversion of other objects to strings. String concatenation is implemented through the `StringBuilder`(or `StringBuffer`) class and its `append` method. String conversions are implemented through the method `toString`, defined by `Object` and inherited by all classes in Java. For additional information on string concatenation and conversion, see Gosling, Joy, and Steele, *The Java Language Specification*.

Unless otherwise noted, passing a null argument to a constructor or method in this class will cause a `NullPointerException` to be thrown.

A `String` represents a string in the UTF-16 format in which *supplementary characters* are represented by *surrogate pairs* (see the section Unicode Character Representations in the `Character` class for more information). Index values refer to `char` code units, so a supplementary character uses two positions in a `String`.

The `String` class provides methods for dealing with Unicode code points (i.e., characters), in addition to those for dealing with Unicode code units (i.e., `char` values).

Since:

JDK1.0

See Also:

`Object.toString()`, `StringBuffer`, `StringBuilder`, `Charset`, Serialized Form

 *   doesn't match pattern: This Javadoc contains a link to \[newMethodBeingLinkedToo\]\(file:/.*/salut/src/main/java/java/Foo2.java#23\)

 \*  \*\*Parameters:\*\*

     \*  \*\*someString\*\* the string to enter
 \*  \*\*Returns:\*\*

     \*  String
 \*  \*\*Throws:\*\*

     \*  IOException
 \*  \*\*Since:\*\*

     \*  0.0.1
 \*  \*\*Version:\*\*

     \*  0.0.1
 \*  \*\*Author:\*\*

     \*  jpinkney
 \*  \*\*See Also:\*\*

     \*  \[Online docs for java\]\(https://docs.oracle.com/javase/7/docs/api/\)
 \*  \*\*API Note:\*\*

     \*  This is a note
  HoverHandlerTest.testHoverWhenLinkDoesNotExist:487 Unexpected hover contents:
Either [
  left = [Either [
  left =
  right = null
]]
  right = null
] expected:<2> but was:<1>
  SaveActionHandlerTest.testWillSaveWaitUntil:79 expected:<package java;[

public class Foo4 {
]
> but was:<package java;[

public class Foo4 {
}]
>
  WorkspaceDiagnosticsHandlerTest.testMissingDependencies:317->testDiagnostic:356 No maven/salut errors were found
  WorkspaceDiagnosticsHandlerTest.testMissingNatures:263
  WorkspaceDiagnosticsHandlerTest.testProjectLevelMarkers:233 No maven/broken errors were found
  JavaDoc2MarkdownConverterTest.testAuthorTag:215 expected:< *  **Author:**[
    ]
     *  someAuthor> but was:< *  **Author:**[
]
     *  someAuthor>
  JavaDoc2MarkdownConverterTest.testParamTag:183 expected:< *  **Parameters:**[
    ]
     *  **someStrin...> but was:< *  **Parameters:**[
]
     *  **someStrin...>
  JavaDoc2MarkdownConverterTest.testSeeTag:175 expected:< *  **See Also:**[
    ]
     *  [Online doc...> but was:< *  **See Also:**[
]
     *  [Online doc...>
  JavaDoc2MarkdownConverterTest.testSinceTag:191 expected:< *  **Since:**[
    ]
     *  0.0.1> but was:< *  **Since:**[
]
     *  0.0.1>
  JavaDoc2MarkdownConverterTest.testThrowsTag:207 expected:< *  **Throws:**[
    ]
     *  IOException> but was:< *  **Throws:**[
]
     *  IOException>
  JavaDoc2MarkdownConverterTest.testVersionTag:199 expected:< *  @version[
    ]
     *  0.0.1> but was:< *  @version[
]
     *  0.0.1>
  GradleProjectImporterTest.testDeleteClasspath:320
  InvisibleProjectImporterTest.automaticJarDetectionLibUnderSource:79 Unexpected source glob pattern: **/pom.xml
Errors:
  LocalCorrectionQuickFixTest>AbstractProjectsManagerBasedTest.cleanUp:248 ? IO ...
  LocalCorrectionQuickFixTest>AbstractProjectsManagerBasedTest.cleanUp:248 ? IO ...
  LocalCorrectionQuickFixTest>AbstractProjectsManagerBasedTest.cleanUp:248 ? IO ...
  LocalCorrectionQuickFixTest>AbstractProjectsManagerBasedTest.cleanUp:248 ? IO ...
  LocalCorrectionQuickFixTest>AbstractProjectsManagerBasedTest.cleanUp:248 ? IO ...
  LocalCorrectionQuickFixTest>AbstractProjectsManagerBasedTest.cleanUp:248 ? IO ...
  LocalCorrectionQuickFixTest>AbstractProjectsManagerBasedTest.cleanUp:248 ? IO ...
  GenerateToStringHandlerTest>AbstractProjectsManagerBasedTest.cleanUp:248 ? IO ...
  GenerateToStringHandlerTest>AbstractProjectsManagerBasedTest.cleanUp:248 ? IO ...
  GenerateToStringHandlerTest>AbstractProjectsManagerBasedTest.cleanUp:248 ? IO ...
  GenerateToStringHandlerTest>AbstractProjectsManagerBasedTest.cleanUp:248 ? IO ...
  InitHandlerTest.testInitOnSymbolicLinkFolder:306 ? FileSystem C:\Users\18260\A...
org.eclipse.jdt.ls.core.internal.handlers.WorkspaceDiagnosticsHandlerTest.testProjectConfigurationIsNotUpToDate(org.eclipse.jdt.ls.core.internal.handlers.WorkspaceDiagnosticsHandlerTest)
  Run 1: WorkspaceDiagnosticsHandlerTest.testProjectConfigurationIsNotUpToDate:289 No maven/salut errors were found
  Run 2: WorkspaceDiagnosticsHandlerTest>AbstractProjectsManagerBasedTest.cleanUp:248 ? IO

  WorkspaceDiagnosticsHandlerTest>AbstractProjectsManagerBasedTest.cleanUp:248 ? IO
  BasicFileDetectorTest.testScanCircularSymbolicLinks:114 ? FileSystem C:\Users\...
  BasicFileDetectorTest.testScanSymbolicLinks:92 ? FileSystem C:\Users\18260\App...

Tests run: 1086, Failures: 23, Errors: 16, Skipped: 8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants