Add agent for JBoss Forge

This commit is contained in:
Stephane Nicoll 2018-02-21 16:59:41 +01:00
parent afd4cd6a59
commit 2f49fde74e
2 changed files with 9 additions and 0 deletions

View File

@ -67,6 +67,8 @@ public class Agent {
HTTPIE("httpie", "HTTPie"),
JBOSS_FORGE("jbossforge", "SpringBootForgeCli"),
SPRING_BOOT_CLI("spring", "SpringBootCli"),
STS("sts", "STS"),

View File

@ -44,6 +44,13 @@ public class AgentTests {
assertThat(agent.getVersion(), equalTo("0.8.0"));
}
@Test
public void checkJBossForge() {
Agent agent = Agent.fromUserAgent("SpringBootForgeCli/1.0.0.Alpha4");
assertThat(agent.getId(), equalTo(Agent.AgentId.JBOSS_FORGE));
assertThat(agent.getVersion(), equalTo("1.0.0.Alpha4"));
}
@Test
public void checkSpringBootCli() {
Agent agent = Agent.fromUserAgent("SpringBootCli/1.3.1.RELEASE");