mirror of
https://gitee.com/dcren/initializr.git
synced 2025-05-04 04:38:02 +08:00
Add agent for JBoss Forge
This commit is contained in:
parent
afd4cd6a59
commit
2f49fde74e
@ -67,6 +67,8 @@ public class Agent {
|
||||
|
||||
HTTPIE("httpie", "HTTPie"),
|
||||
|
||||
JBOSS_FORGE("jbossforge", "SpringBootForgeCli"),
|
||||
|
||||
SPRING_BOOT_CLI("spring", "SpringBootCli"),
|
||||
|
||||
STS("sts", "STS"),
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user