Skip to content

Commit fbde088

Browse files
committed
better handling default group and name
1 parent a40e29b commit fbde088

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/com.tw.go.config.json/JsonConfigCollection.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,5 @@ public JsonArray getErrors() {
5252
public void addError(PluginError error) {
5353
errors.add(gson.toJsonTree(error));
5454
}
55+
5556
}

test/com.tw.go.config.json/JsonConfigCollectionTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
package com.tw.go.config.json;
22

33
import com.google.gson.JsonArray;
4+
import com.google.gson.JsonElement;
45
import com.google.gson.JsonObject;
56
import com.google.gson.JsonPrimitive;
67
import org.junit.Before;
78
import org.junit.Test;
89

10+
import static junit.framework.TestCase.assertNull;
911
import static org.hamcrest.core.Is.is;
1012
import static org.hamcrest.core.IsCollectionContaining.hasItem;
1113
import 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
{

0 commit comments

Comments
 (0)