@@ -19,7 +19,7 @@ public void shouldParsingStayConstant() {
19
19
+ " --> none\n "
20
20
+ " <-- KSTREAM-SOURCE-0000000001\n "
21
21
+ "Sub-topology: 1\n "
22
- + " Source: KSTREAM-SOURCE-0000000003 (topics: [temperature- values])\n "
22
+ + " Source: KSTREAM-SOURCE-0000000003 (topics: [temperature. values])\n "
23
23
+ " --> KSTREAM-LEFTJOIN-0000000004\n "
24
24
+ " Processor: KSTREAM-LEFTJOIN-0000000004 (stores: [])\n "
25
25
+ " --> KSTREAM-AGGREGATE-0000000005\n "
@@ -43,62 +43,62 @@ public void shouldParsingStayConstant() {
43
43
44
44
assertEquals (expectedDescribe , actual .getString ("describe" ));
45
45
assertEquals ("[0, 1, 2]" , actual .getString ("subTopologies" ));
46
- assertEquals ("[notification\\ ..+, temperature- values, weather-stations]" , actual .getString ("sources" ));
46
+ assertEquals ("[notification\\ ..+, temperature. values, weather-stations]" , actual .getString ("sources" ));
47
47
assertEquals ("[temperatures-aggregated]" , actual .getString ("sinks" ));
48
48
assertEquals ("[weather-stations-STATE-STORE-0000000000, weather-stations-store]" , actual .getString ("stores" ));
49
49
assertEquals ("digraph {\n "
50
50
+ " fontname=Helvetica; fontsize=10;\n "
51
51
+ " node [style=filled fillcolor=white color=\" #C9B7DD\" shape=box fontname=Helvetica fontsize=10];\n "
52
- + " weather_stations [label=\" weather\\ nstations\" shape=invhouse margin=\" 0,0\" ];\n "
53
- + " KSTREAM_SOURCE_0000000001 [label=\" KSTREAM\\ nSOURCE\\ n0000000001\" ];\n "
54
- + " KTABLE_SOURCE_0000000002 [label=\" KTABLE\\ nSOURCE\\ n0000000002\" ];\n "
55
- + " weather_stations_STATE_STORE_0000000000 [label=\" weather\\ nstations\\ nSTATE\\ nSTORE\\ n0000000000\" shape=cylinder];\n "
56
- + " temperature_values [label=\" temperature\\ nvalues \" shape=invhouse margin=\" 0,0\" ];\n "
57
- + " KSTREAM_SOURCE_0000000003 [label=\" KSTREAM\\ nSOURCE\\ n0000000003\" ];\n "
58
- + " KSTREAM_LEFTJOIN_0000000004 [label=\" KSTREAM\\ nLEFTJOIN\\ n0000000004\" ];\n "
59
- + " KSTREAM_AGGREGATE_0000000005 [label=\" KSTREAM\\ nAGGREGATE\\ n0000000005\" ];\n "
60
- + " weather_stations_store [label=\" weather\\ nstations\\ nstore\" shape=cylinder];\n "
61
- + " KTABLE_TOSTREAM_0000000006 [label=\" KTABLE\\ nTOSTREAM\\ n0000000006\" ];\n "
62
- + " KSTREAM_SINK_0000000007 [label=\" KSTREAM\\ nSINK\\ n0000000007\" ];\n "
63
- + " temperatures_aggregated [label=\" temperatures\\ naggregated\" shape=house margin=\" 0,0\" ];\n "
52
+ + " \" weather-stations \" [label=\" weather\\ nstations\" shape=invhouse margin=\" 0,0\" ];\n "
53
+ + " \" KSTREAM-SOURCE-0000000001 \" [label=\" KSTREAM\\ nSOURCE\\ n0000000001\" ];\n "
54
+ + " \" KTABLE-SOURCE-0000000002 \" [label=\" KTABLE\\ nSOURCE\\ n0000000002\" ];\n "
55
+ + " \" weather-stations-STATE-STORE-0000000000 \" [label=\" weather\\ nstations\\ nSTATE\\ nSTORE\\ n0000000000\" shape=cylinder];\n "
56
+ + " \" temperature.values \" [label=\" temperature.values \" shape=invhouse margin=\" 0,0\" ];\n "
57
+ + " \" KSTREAM-SOURCE-0000000003 \" [label=\" KSTREAM\\ nSOURCE\\ n0000000003\" ];\n "
58
+ + " \" KSTREAM-LEFTJOIN-0000000004 \" [label=\" KSTREAM\\ nLEFTJOIN\\ n0000000004\" ];\n "
59
+ + " \" KSTREAM-AGGREGATE-0000000005 \" [label=\" KSTREAM\\ nAGGREGATE\\ n0000000005\" ];\n "
60
+ + " \" weather-stations-store \" [label=\" weather\\ nstations\\ nstore\" shape=cylinder];\n "
61
+ + " \" KTABLE-TOSTREAM-0000000006 \" [label=\" KTABLE\\ nTOSTREAM\\ n0000000006\" ];\n "
62
+ + " \" KSTREAM-SINK-0000000007 \" [label=\" KSTREAM\\ nSINK\\ n0000000007\" ];\n "
63
+ + " \" temperatures-aggregated \" [label=\" temperatures\\ naggregated\" shape=house margin=\" 0,0\" ];\n "
64
64
+ " REGEX_12 [label=\" notification\\ \\ ..+\" shape=invhouse style=dashed margin=\" 0,0\" ];\n "
65
- + " KSTREAM_SOURCE_0000000008 [label=\" KSTREAM\\ nSOURCE\\ n0000000008\" ];\n "
66
- + " KSTREAM_FOREACH_0000000009 [label=\" KSTREAM\\ nFOREACH\\ n0000000009\" ];\n "
65
+ + " \" KSTREAM-SOURCE-0000000008 \" [label=\" KSTREAM\\ nSOURCE\\ n0000000008\" ];\n "
66
+ + " \" KSTREAM-FOREACH-0000000009 \" [label=\" KSTREAM\\ nFOREACH\\ n0000000009\" ];\n "
67
67
+ " subgraph cluster0 {\n "
68
68
+ " label=\" Sub-Topology: 0\" ; color=\" #C8C879\" ; bgcolor=\" #FFFFDE\" ;\n "
69
- + " KSTREAM_SOURCE_0000000001 ;\n "
70
- + " KTABLE_SOURCE_0000000002 ;\n "
69
+ + " \" KSTREAM-SOURCE-0000000001 \" ;\n "
70
+ + " \" KTABLE-SOURCE-0000000002 \" ;\n "
71
71
+ " }\n "
72
72
+ " subgraph cluster1 {\n "
73
73
+ " label=\" Sub-Topology: 1\" ; color=\" #C8C879\" ; bgcolor=\" #FFFFDE\" ;\n "
74
- + " KSTREAM_SOURCE_0000000003 ;\n "
75
- + " KSTREAM_LEFTJOIN_0000000004 ;\n "
76
- + " KSTREAM_AGGREGATE_0000000005 ;\n "
77
- + " KTABLE_TOSTREAM_0000000006 ;\n "
78
- + " KSTREAM_SINK_0000000007 ;\n "
74
+ + " \" KSTREAM-SOURCE-0000000003 \" ;\n "
75
+ + " \" KSTREAM-LEFTJOIN-0000000004 \" ;\n "
76
+ + " \" KSTREAM-AGGREGATE-0000000005 \" ;\n "
77
+ + " \" KTABLE-TOSTREAM-0000000006 \" ;\n "
78
+ + " \" KSTREAM-SINK-0000000007 \" ;\n "
79
79
+ " }\n "
80
80
+ " subgraph cluster2 {\n "
81
81
+ " label=\" Sub-Topology: 2\" ; color=\" #C8C879\" ; bgcolor=\" #FFFFDE\" ;\n "
82
- + " KSTREAM_SOURCE_0000000008 ;\n "
83
- + " KSTREAM_FOREACH_0000000009 ;\n "
82
+ + " \" KSTREAM-SOURCE-0000000008 \" ;\n "
83
+ + " \" KSTREAM-FOREACH-0000000009 \" ;\n "
84
84
+ " }\n "
85
- + " weather_stations -> KSTREAM_SOURCE_0000000001 ;\n "
86
- + " KSTREAM_SOURCE_0000000001 -> KTABLE_SOURCE_0000000002 ;\n "
87
- + " KTABLE_SOURCE_0000000002 -> weather_stations_STATE_STORE_0000000000 ;\n "
88
- + " temperature_values -> KSTREAM_SOURCE_0000000003 ;\n "
89
- + " KSTREAM_SOURCE_0000000003 -> KSTREAM_LEFTJOIN_0000000004 ;\n "
90
- + " KSTREAM_LEFTJOIN_0000000004 -> KSTREAM_AGGREGATE_0000000005 ;\n "
91
- + " KSTREAM_AGGREGATE_0000000005 -> weather_stations_store ;\n "
92
- + " KSTREAM_AGGREGATE_0000000005 -> KTABLE_TOSTREAM_0000000006 ;\n "
93
- + " KTABLE_TOSTREAM_0000000006 -> KSTREAM_SINK_0000000007 ;\n "
94
- + " KSTREAM_SINK_0000000007 -> temperatures_aggregated ;\n "
95
- + " REGEX_12 -> KSTREAM_SOURCE_0000000008 ;\n "
96
- + " KSTREAM_SOURCE_0000000008 -> KSTREAM_FOREACH_0000000009 ;\n "
85
+ + " \" weather-stations \" -> \" KSTREAM-SOURCE-0000000001 \" ;\n "
86
+ + " \" KSTREAM-SOURCE-0000000001 \" -> \" KTABLE-SOURCE-0000000002 \" ;\n "
87
+ + " \" KTABLE-SOURCE-0000000002 \" -> \" weather-stations-STATE-STORE-0000000000 \" ;\n "
88
+ + " \" temperature.values \" -> \" KSTREAM-SOURCE-0000000003 \" ;\n "
89
+ + " \" KSTREAM-SOURCE-0000000003 \" -> \" KSTREAM-LEFTJOIN-0000000004 \" ;\n "
90
+ + " \" KSTREAM-LEFTJOIN-0000000004 \" -> \" KSTREAM-AGGREGATE-0000000005 \" ;\n "
91
+ + " \" KSTREAM-AGGREGATE-0000000005 \" -> \" weather-stations-store \" ;\n "
92
+ + " \" KSTREAM-AGGREGATE-0000000005 \" -> \" KTABLE-TOSTREAM-0000000006 \" ;\n "
93
+ + " \" KTABLE-TOSTREAM-0000000006 \" -> \" KSTREAM-SINK-0000000007 \" ;\n "
94
+ + " \" KSTREAM-SINK-0000000007 \" -> \" temperatures-aggregated \" ;\n "
95
+ + " REGEX_12 -> \" KSTREAM-SOURCE-0000000008 \" ;\n "
96
+ + " \" KSTREAM-SOURCE-0000000008 \" -> \" KSTREAM-FOREACH-0000000009 \" ;\n "
97
97
+ "}" , actual .getString ("graphviz" ));
98
98
assertEquals ("graph TD\n "
99
99
+ " weather-stations[weather-stations] --> KSTREAM-SOURCE-0000000001(KSTREAM-<br>SOURCE-<br>0000000001)\n "
100
100
+ " KTABLE-SOURCE-0000000002[KTABLE-<br>SOURCE-<br>0000000002] --> weather-stations-STATE-STORE-0000000000(weather-<br>stations-<br>STATE-<br>STORE-<br>0000000000)\n "
101
- + " temperature- values[temperature- values] --> KSTREAM-SOURCE-0000000003(KSTREAM-<br>SOURCE-<br>0000000003)\n "
101
+ + " temperature. values[temperature. values] --> KSTREAM-SOURCE-0000000003(KSTREAM-<br>SOURCE-<br>0000000003)\n "
102
102
+ " KSTREAM-AGGREGATE-0000000005[KSTREAM-<br>AGGREGATE-<br>0000000005] --> weather-stations-store(weather-<br>stations-<br>store)\n "
103
103
+ " KSTREAM-SINK-0000000007[KSTREAM-<br>SINK-<br>0000000007] --> temperatures-aggregated(temperatures-aggregated)\n "
104
104
+ " REGEX_5[notification\\ ..+] --> KSTREAM-SOURCE-0000000008(KSTREAM-<br>SOURCE-<br>0000000008)\n "
0 commit comments