Skip to content

Commit

Permalink
add surfire plugin to pickup the junit5 engine
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterjackson committed Aug 18, 2023
1 parent acb4137 commit 0aa1257
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

name: Continious Integration
name: Continuous Integration

on: [push]

Expand Down
1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<modelVersion>4.0.0</modelVersion>

<groupId>com.meta</groupId>
<artifactId>ChatBridge</artifactId>
<artifactId>CP4M</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
Expand Down Expand Up @@ -61,4 +61,13 @@
<version>2.0.7</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.2</version>
</plugin>
</plugins>
</build>
</project>
20 changes: 4 additions & 16 deletions src/test/java/com/meta/chatbridge/store/MessageStackTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,19 @@

package com.meta.chatbridge.store;

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.fail;

import com.google.common.collect.Lists;
import com.meta.chatbridge.FBID;
import com.meta.chatbridge.message.Message;
import java.time.Instant;
import java.util.List;

import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.fail;

class MessageStackTest {

static class TestMessage implements Message {

private final Instant timestamp;

TestMessage(Instant timestamp) {
this.timestamp = timestamp;
}

@Override
public Instant timestamp() {
return timestamp;
}
record TestMessage(Instant timestamp) implements Message {

@Override
public FBID conversationId() {
Expand Down

0 comments on commit 0aa1257

Please sign in to comment.