Skip to content

Commit

Permalink
Update elementary and remove filesystem support classes no longer nee…
Browse files Browse the repository at this point in the history
…ded by tests
  • Loading branch information
holly-cummins committed May 30, 2024
1 parent ba50144 commit bae3f96
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 322 deletions.
2 changes: 1 addition & 1 deletion core/processor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<dependency>
<groupId>com.karuslabs</groupId>
<artifactId>elementary</artifactId>
<version>2.0.1</version>
<version>3.0.0</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import javax.tools.JavaFileObject;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;

Expand All @@ -18,18 +17,10 @@
import com.karuslabs.elementary.junit.annotations.Classpath;
import com.karuslabs.elementary.junit.annotations.Processors;

import io.quarkus.annotation.processor.fs.CustomMemoryFileSystemProvider;

@ExtendWith(JavacExtension.class)
@Processors({ ExtensionAnnotationProcessor.class })
class ExtensionAnnotationProcessorTest {

@BeforeEach
void beforeEach() {
// This is of limited use, since the filesystem doesn't seem to directly generate files, in the current usage
CustomMemoryFileSystemProvider.reset();
}

@Test
@Classpath("org.acme.examples.ClassWithBuildStep")
void shouldProcessClassWithBuildStepWithoutErrors(Results results) throws IOException {
Expand All @@ -40,7 +31,7 @@ void shouldProcessClassWithBuildStepWithoutErrors(Results results) throws IOExce
@Classpath("org.acme.examples.ClassWithBuildStep")
void shouldGenerateABscFile(Results results) throws IOException {
assertNoErrrors(results);
List<JavaFileObject> sources = results.sources;
List<JavaFileObject> sources = results.generatedSources;
JavaFileObject bscFile = sources.stream()
.filter(source -> source.getName()
.endsWith(".bsc"))
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit bae3f96

Please sign in to comment.