@@ -17,6 +17,7 @@ package demo.monitoring;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.hasItems;
|
||||
import static org.hamcrest.CoreMatchers.is;
|
||||
import static org.hamcrest.CoreMatchers.notNullValue;
|
||||
import static org.hamcrest.Matchers.allOf;
|
||||
import static org.hamcrest.Matchers.containsInAnyOrder;
|
||||
import static org.hamcrest.Matchers.containsString;
|
||||
@@ -87,7 +88,7 @@ public class MonitoringTests {
|
||||
perform(get("/application/metrics/ssm.transition.transit")).
|
||||
andDo(print()).
|
||||
andExpect(jsonPath("$.name", is("ssm.transition.transit"))).
|
||||
andExpect(jsonPath("$.measurements[0].value", is(2.0))).
|
||||
andExpect(jsonPath("$.measurements[0].value", notNullValue())).
|
||||
andExpect(jsonPath("$.availableTags[0].tag", is("transitionName"))).
|
||||
andExpect(jsonPath("$.availableTags[0].values", hasItems("EXTERNAL_S1_S2","INITIAL_S1")));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user