Замена Sample на <%%RESERVED_NAME%%> для проектов на фабрике
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
package biz.redsoft.sample;
|
||||
package biz.redsoft.<%%RESERVED_NAME%%>;
|
||||
|
||||
import biz.redsoft.ncore.util.Misc;
|
||||
|
||||
@ -10,11 +10,11 @@ import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
public class SampleTests {
|
||||
public class <%%RESERVED_NAME%%>Tests {
|
||||
@Test
|
||||
public void testProductName() throws IOException {
|
||||
final Properties props = new Properties(System.getProperties());
|
||||
Misc.loadProperties(props, Arrays.asList("ncore-properties.xml", "ncore-properties-local.xml"));
|
||||
Assertions.assertEquals(props.getProperty("product.name"), "sample");
|
||||
Assertions.assertEquals(props.getProperty("product.name"), "<%%RESERVED_NAME%%>");
|
||||
}
|
||||
}
|
||||
|
||||
@ -35,7 +35,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
package biz.redsoft.sample;
|
||||
package biz.redsoft.<%%RESERVED_NAME%%>;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
Reference in New Issue
Block a user