()
| 96 | } |
| 97 | |
| 98 | @Test |
| 99 | public void executeMissingMetricNotWriteable() throws Exception { |
| 100 | final PutDataPointRpc put = new PutDataPointRpc(tsdb.getConfig()); |
| 101 | final Channel chan = NettyMocks.fakeChannel(); |
| 102 | when(chan.isWritable()).thenReturn(false); |
| 103 | put.execute(tsdb, chan, new String[] { "put", "", |
| 104 | "1365465600", "42", TAGK_STRING + "=" + TAGV_STRING }) |
| 105 | .joinUninterruptibly(); |
| 106 | validateCounters(1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0); |
| 107 | verify(chan, never()).write(any()); |
| 108 | verify(chan, times(1)).isConnected(); |
| 109 | validateSEH(false); |
| 110 | } |
| 111 | |
| 112 | @Test |
| 113 | public void executeUnknownMetric() throws Exception { |
nothing calls this directly
no test coverage detected