Skip to content

Commit

Permalink
Add issue 624
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny van Bruggen committed Dec 13, 2016
1 parent d9cadd0 commit fed8e0e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
Expand Up @@ -21,6 +21,7 @@

package com.github.javaparser;

import com.github.javaparser.ast.CompilationUnit;
import com.github.javaparser.ast.comments.CommentsCollection;
import org.apache.commons.io.Charsets;
import org.junit.Test;
Expand All @@ -32,7 +33,7 @@

public class CommentsInserterTest {

private ParseResult parseSample(String sampleName) {
private ParseResult<CompilationUnit> parseSample(String sampleName) {
Provider p = Providers.resourceProvider(
"com/github/javaparser/issue_samples/" + sampleName + ".java.txt");
return new JavaParser().parse(ParseStart.COMPILATION_UNIT, p);
Expand All @@ -49,4 +50,10 @@ public void issue290() throws IOException {
assertEquals(1, cc.getJavadocComments().size());
}

@Test
public void issue624() {
ParseResult result = parseSample("Issue624");
// Should not fail
}

}
@@ -0,0 +1,14 @@
package z;
public class A {

@Override
protected void getDataForCalcul() {

a.b(c)//
.success(data -> {
// DATA STD MACHINE
dosomething();
})//
.error(defaultErrorConsumer);
}
}

0 comments on commit fed8e0e

Please sign in to comment.