File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
src/com.tw.go.config.json
test/com.tw.go.config.json Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -52,4 +52,5 @@ public JsonArray getErrors() {
5252 public void addError (PluginError error ) {
5353 errors .add (gson .toJsonTree (error ));
5454 }
55+
5556}
Original file line number Diff line number Diff line change 11package com .tw .go .config .json ;
22
33import com .google .gson .JsonArray ;
4+ import com .google .gson .JsonElement ;
45import com .google .gson .JsonObject ;
56import com .google .gson .JsonPrimitive ;
67import org .junit .Before ;
78import org .junit .Test ;
89
10+ import static junit .framework .TestCase .assertNull ;
911import static org .hamcrest .core .Is .is ;
1012import static org .hamcrest .core .IsCollectionContaining .hasItem ;
1113import static org .junit .Assert .assertThat ;
@@ -62,6 +64,7 @@ public void shouldAppendPipelinesToPipelinesCollection()
6264 assertThat (jsonObject .getAsJsonArray ("pipelines" ).size (),is (2 ));
6365 }
6466
67+
6568 @ Test
6669 public void shouldReturnEnvironmentsInJsonObject ()
6770 {
You can’t perform that action at this time.
0 commit comments