Exemplo n.º 1
0
 @Test
 public void Test2() throws SiddhiParserException {
   StreamDefinition streamDefinition =
       SiddhiCompiler.parseStreamDefinition(
           "define stream `define` ( `string` string, price int, volume float );");
   Assert.assertEquals(
       StreamDefinition.id("define")
           .attribute("string", Attribute.Type.STRING)
           .attribute("price", Attribute.Type.INT)
           .attribute("volume", Attribute.Type.FLOAT)
           .toString(),
       streamDefinition.toString());
 }