Skip to content

Commit

Permalink
Merge pull request #20 from mkouba/default-server-info-test-fix
Browse files Browse the repository at this point in the history
Fix DefaultServerInfoTest
  • Loading branch information
mkouba authored Dec 19, 2024
2 parents d6d7c13 + 93b3f1e commit 15cde0f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import java.net.URISyntaxException;

import org.eclipse.microprofile.config.ConfigProvider;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;

Expand All @@ -25,7 +26,8 @@ public void testServerInfo() throws URISyntaxException {
JsonObject serverInfo = result.getJsonObject("serverInfo");
assertNotNull(serverInfo);
assertEquals("quarkus-mcp-server-deployment", serverInfo.getString("name"));
assertEquals("999-SNAPSHOT", serverInfo.getString("version"));
assertEquals(ConfigProvider.getConfig().getOptionalValue("quarkus.application.version", String.class).orElseThrow(),
serverInfo.getString("version"));
});
}
}

0 comments on commit 15cde0f

Please sign in to comment.