@@ -109,8 +109,8 @@ public void configRoundTrip() throws Exception {
109
109
assertNotNull (withResourceProp );
110
110
assertEquals ("resource1" , withResourceProp .getResourceNames ());
111
111
assertEquals ("resourceNameVar" , withResourceProp .getResourceNamesVar ());
112
- assertEquals ( "" , withResourceProp .getResourceNumber ());
113
- assertEquals ( "" , withResourceProp .getLabelName ());
112
+ assertNull ( withResourceProp .getResourceNumber ());
113
+ assertNull ( withResourceProp .getLabelName ());
114
114
assertNull (withResourceProp .getResourceMatchScript ());
115
115
116
116
FreeStyleProject withLabel = j .createFreeStyleProject ("withLabel" );
@@ -119,9 +119,9 @@ public void configRoundTrip() throws Exception {
119
119
120
120
RequiredResourcesProperty withLabelProp = withLabelRoundTrip .getProperty (RequiredResourcesProperty .class );
121
121
assertNotNull (withLabelProp );
122
- assertEquals ( "" , withLabelProp .getResourceNames ());
123
- assertEquals ( "" , withLabelProp .getResourceNamesVar ());
124
- assertEquals ( "" , withLabelProp .getResourceNumber ());
122
+ assertNull ( withLabelProp .getResourceNames ());
123
+ assertNull ( withLabelProp .getResourceNamesVar ());
124
+ assertNull ( withLabelProp .getResourceNumber ());
125
125
assertEquals ("some-label" , withLabelProp .getLabelName ());
126
126
assertNull (withLabelProp .getResourceMatchScript ());
127
127
@@ -132,10 +132,10 @@ public void configRoundTrip() throws Exception {
132
132
133
133
RequiredResourcesProperty withScriptProp = withScriptRoundTrip .getProperty (RequiredResourcesProperty .class );
134
134
assertNotNull (withScriptProp );
135
- assertEquals ( "" , withScriptProp .getResourceNames ());
136
- assertEquals ( "" , withScriptProp .getResourceNamesVar ());
137
- assertEquals ( "" , withScriptProp .getResourceNumber ());
138
- assertEquals ( "" , withScriptProp .getLabelName ());
135
+ assertNull ( withScriptProp .getResourceNames ());
136
+ assertNull ( withScriptProp .getResourceNamesVar ());
137
+ assertNull ( withScriptProp .getResourceNumber ());
138
+ assertNull ( withScriptProp .getLabelName ());
139
139
assertNotNull (withScriptProp .getResourceMatchScript ());
140
140
assertEquals ("return true" , withScriptProp .getResourceMatchScript ().getScript ());
141
141
assertEquals (false , withScriptProp .getResourceMatchScript ().isSandbox ());
0 commit comments