Skip to content

Commit

Permalink
Update new test class name, removed junit-platform-runner dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Edgar <michael@xlate.io>
  • Loading branch information
MikeEdgar committed Mar 14, 2023
1 parent 3412e44 commit 2ed45ab
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 44 deletions.
23 changes: 0 additions & 23 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,6 @@
<version>5.9.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-runner</artifactId>
<version>1.9.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
Expand Down Expand Up @@ -237,23 +231,6 @@
</build>

<profiles>
<profile>
<id>coverage</id>
<build>
<plugins>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<configuration>
<jacocoReports>
<jacocoReport>${project.build.directory}/site/jacoco/jacoco.xml</jacocoReport>
<jacocoReport>${project.build.directory}/site/jacoco-it/jacoco.xml</jacocoReport>
</jacocoReports>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>release</id>
<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,26 @@
******************************************************************************/
package io.xlate.inject;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;

import java.util.Properties;

import javax.inject.Inject;

import org.jboss.weld.junit5.WeldInitiator;
import org.jboss.weld.junit5.WeldJunit5Extension;
import org.jboss.weld.junit5.WeldSetup;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.platform.runner.JUnitPlatform;
import org.junit.runner.RunWith;

import javax.inject.Inject;
import java.util.Properties;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;

@RunWith(JUnitPlatform.class)
@ExtendWith(WeldJunit5Extension.class)
class PropertyResourceProducerBeanWithConfigurationFile {

@WeldSetup
WeldInitiator weld = WeldInitiator
.from(PropertyResourceProducerBean.class, TestFileProvider.class)
.build();
class PropertyResourceProducerBeanWithConfigurationFileIT {

@WeldSetup
WeldInitiator weld = WeldInitiator
.from(PropertyResourceProducerBean.class, TestFileProvider.class)
.build();

@Inject
@PropertyResource
Expand All @@ -51,9 +48,6 @@ class PropertyResourceProducerBeanWithConfigurationFile {

@Test
void testGlobalFile() {
WeldInitiator weld = WeldInitiator
.from(PropertyResourceProducerBean.class, TestFileProvider.class)
.build();
assertNotNull(defaultProps);
System.out.println(defaultProps);
assertEquals(3, defaultProps.size());
Expand All @@ -64,9 +58,6 @@ void testGlobalFile() {

@Test
void testGlobalFileOverriddenByLocalLocation() {
WeldInitiator weld = WeldInitiator
.from(PropertyResourceProducerBean.class, TestFileProvider.class)
.build();
assertNotNull(props2);
System.out.println(props2);
assertEquals(3, props2.size());
Expand Down

0 comments on commit 2ed45ab

Please sign in to comment.