Skip to content

Commit

Permalink
Updated Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
beanbeanjuice committed Jun 20, 2024
1 parent 58ca139 commit d688829
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@
<version>24.0.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>RELEASE</version>
<scope>test</scope>
</dependency>
</dependencies>

</project>
21 changes: 21 additions & 0 deletions src/test/java/com/beanbeanjuice/EnvironmentVariableTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.beanbeanjuice;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

public class EnvironmentVariableTest {

@Test
@DisplayName("Environment Variable Test")
public void logLevelTest() {
Assertions.assertNotNull(System.getenv("CAFEBOT_VERSION"));
Assertions.assertNotNull(System.getenv("CAFEBOT_TOKEN"));
Assertions.assertNotNull(System.getenv("CAFEBOT_TWITCH_ACCESS_TOKEN"));
Assertions.assertNotNull(System.getenv("CAFEBOT_REQUEST_LOCATION"));
Assertions.assertNotNull(System.getenv("CAFEBOT_GUILD_ID"));
Assertions.assertNotNull(System.getenv("CAFEBOT_GUILD_LOG_CHANNEL_ID"));
Assertions.assertNotNull(System.getenv("CAFEBOT_GUILD_WEBHOOK_URL"));
}

}

0 comments on commit d688829

Please sign in to comment.