コード例 #1
0
 @Test
 public void withStartProperties() {
   final String prop1 = "prop1";
   final String valueProp1 = "value1";
   final String prop2 = "prop2";
   final String valueProp2 = "value2";
   expectedProjectProperties = toMap(prop1, valueProp1);
   expectedProjectProperties.put(prop2, valueProp2);
   checkConversion("-P", prop1 + "=" + valueProp1, "-P", prop2 + "=" + valueProp2);
 }
コード例 #2
0
 @Test
 public void withSystemProperties() {
   final String prop1 = "gradle.prop1";
   final String valueProp1 = "value1";
   final String prop2 = "gradle.prop2";
   final String valueProp2 = "value2";
   expectedSystemProperties = toMap(prop1, valueProp1);
   expectedSystemProperties.put(prop2, valueProp2);
   checkConversion("-D", prop1 + "=" + valueProp1, "-D", prop2 + "=" + valueProp2);
 }