Замена Sample на <%%RESERVED_NAME%%> для проектов на фабрике

This commit is contained in:
2026-01-19 19:25:00 +03:00
parent 4c87ee8325
commit b635941f70
17 changed files with 37 additions and 84 deletions

View File

@ -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%%>");
}
}

View File

@ -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;