Skip to content

Commit

Permalink
Add test coverage for config version.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdlaird committed Jan 4, 2025
1 parent 621988d commit 9a0fa27
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
package com.github.alexdlaird.ngrok.conf;

import com.github.alexdlaird.ngrok.TestCase;
import com.github.alexdlaird.ngrok.installer.ConfigVersion;
import com.github.alexdlaird.ngrok.installer.NgrokVersion;
import com.github.alexdlaird.ngrok.process.NgrokLog;
import com.github.alexdlaird.ngrok.protocol.Region;
Expand Down Expand Up @@ -39,6 +40,7 @@ public void testJavaNgrokConfig() {
.withStartupTimeout(5)
.withNgrokVersion(NgrokVersion.V2)
.withApiKey("api-key")
.withConfigVersion(ConfigVersion.V2)
.build();

// THEN
Expand All @@ -52,6 +54,7 @@ public void testJavaNgrokConfig() {
assertEquals(5, javaNgrokConfig.getStartupTimeout());
assertEquals(NgrokVersion.V2, javaNgrokConfig.getNgrokVersion());
assertEquals("api-key", javaNgrokConfig.getApiKey());
assertEquals(ConfigVersion.V2, javaNgrokConfig.getConfigVersion());
}

@Test
Expand Down

0 comments on commit 9a0fa27

Please sign in to comment.