Compare commits
3 commits
313121cfcc
...
911d54c10b
Author | SHA1 | Date | |
---|---|---|---|
911d54c10b | |||
5090b8224c | |||
5cfb6fa5f8 |
10 changed files with 37 additions and 26 deletions
4
.idea/libraries/bld.xml
generated
4
.idea/libraries/bld.xml
generated
|
@ -2,12 +2,12 @@
|
||||||
<library name="bld">
|
<library name="bld">
|
||||||
<CLASSES>
|
<CLASSES>
|
||||||
<root url="file://$PROJECT_DIR$/lib/bld" />
|
<root url="file://$PROJECT_DIR$/lib/bld" />
|
||||||
<root url="jar://$USER_HOME$/.bld/dist/bld-2.0.1.jar!/" />
|
<root url="jar://$USER_HOME$/.bld/dist/bld-2.1.0.jar!/" />
|
||||||
</CLASSES>
|
</CLASSES>
|
||||||
<JAVADOC />
|
<JAVADOC />
|
||||||
<SOURCES>
|
<SOURCES>
|
||||||
<root url="file://$PROJECT_DIR$/lib/bld" />
|
<root url="file://$PROJECT_DIR$/lib/bld" />
|
||||||
<root url="jar://$USER_HOME$/.bld/dist/bld-2.0.1-sources.jar!/" />
|
<root url="jar://$USER_HOME$/.bld/dist/bld-2.1.0-sources.jar!/" />
|
||||||
</SOURCES>
|
</SOURCES>
|
||||||
<excluded>
|
<excluded>
|
||||||
<root url="jar://$PROJECT_DIR$/lib/bld/bld-wrapper.jar!/" />
|
<root url="jar://$PROJECT_DIR$/lib/bld/bld-wrapper.jar!/" />
|
||||||
|
|
4
.idea/libraries/compile.xml
generated
4
.idea/libraries/compile.xml
generated
|
@ -7,7 +7,7 @@
|
||||||
<SOURCES>
|
<SOURCES>
|
||||||
<root url="file://$PROJECT_DIR$/lib/compile" />
|
<root url="file://$PROJECT_DIR$/lib/compile" />
|
||||||
</SOURCES>
|
</SOURCES>
|
||||||
<jarDirectory url="file://$PROJECT_DIR$/lib/compile" recursive="false" />
|
<jarDirectory url="file://$PROJECT_DIR$/lib/compile" recursive="true" />
|
||||||
<jarDirectory url="file://$PROJECT_DIR$/lib/compile" recursive="false" type="SOURCES" />
|
<jarDirectory url="file://$PROJECT_DIR$/lib/compile" recursive="true" type="SOURCES" />
|
||||||
</library>
|
</library>
|
||||||
</component>
|
</component>
|
4
.idea/libraries/runtime.xml
generated
4
.idea/libraries/runtime.xml
generated
|
@ -7,7 +7,7 @@
|
||||||
<SOURCES>
|
<SOURCES>
|
||||||
<root url="file://$PROJECT_DIR$/lib/runtime" />
|
<root url="file://$PROJECT_DIR$/lib/runtime" />
|
||||||
</SOURCES>
|
</SOURCES>
|
||||||
<jarDirectory url="file://$PROJECT_DIR$/lib/runtime" recursive="false" />
|
<jarDirectory url="file://$PROJECT_DIR$/lib/runtime" recursive="true" />
|
||||||
<jarDirectory url="file://$PROJECT_DIR$/lib/runtime" recursive="false" type="SOURCES" />
|
<jarDirectory url="file://$PROJECT_DIR$/lib/runtime" recursive="true" type="SOURCES" />
|
||||||
</library>
|
</library>
|
||||||
</component>
|
</component>
|
4
.idea/libraries/test.xml
generated
4
.idea/libraries/test.xml
generated
|
@ -7,7 +7,7 @@
|
||||||
<SOURCES>
|
<SOURCES>
|
||||||
<root url="file://$PROJECT_DIR$/lib/test" />
|
<root url="file://$PROJECT_DIR$/lib/test" />
|
||||||
</SOURCES>
|
</SOURCES>
|
||||||
<jarDirectory url="file://$PROJECT_DIR$/lib/test" recursive="false" />
|
<jarDirectory url="file://$PROJECT_DIR$/lib/test" recursive="true" />
|
||||||
<jarDirectory url="file://$PROJECT_DIR$/lib/test" recursive="false" type="SOURCES" />
|
<jarDirectory url="file://$PROJECT_DIR$/lib/test" recursive="true" type="SOURCES" />
|
||||||
</library>
|
</library>
|
||||||
</component>
|
</component>
|
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
|
@ -9,7 +9,7 @@
|
||||||
],
|
],
|
||||||
"java.configuration.updateBuildConfiguration": "automatic",
|
"java.configuration.updateBuildConfiguration": "automatic",
|
||||||
"java.project.referencedLibraries": [
|
"java.project.referencedLibraries": [
|
||||||
"${HOME}/.bld/dist/bld-2.0.1.jar",
|
"${HOME}/.bld/dist/bld-2.1.0.jar",
|
||||||
"lib/**/*.jar"
|
"lib/**/*.jar"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[](https://opensource.org/licenses/Apache-2.0)
|
[](https://opensource.org/licenses/Apache-2.0)
|
||||||
[](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html)
|
[](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html)
|
||||||
[](https://rife2.com/bld)
|
[](https://rife2.com/bld)
|
||||||
[](https://github.com/rife2/rife2-template-renderers/releases/latest)
|
[](https://github.com/rife2/rife2-template-renderers/releases/latest)
|
||||||
[](https://repo.rife2.com/#/releases/com/uwyn/rife2/rife2-renderers)
|
[](https://repo.rife2.com/#/releases/com/uwyn/rife2/rife2-renderers)
|
||||||
[](https://central.sonatype.com/artifact/com.uwyn.rife2/rife2-renderers/)
|
[](https://central.sonatype.com/artifact/com.uwyn.rife2/rife2-renderers/)
|
||||||
|
@ -63,4 +63,4 @@ This project provides a collection of useful template renderers.
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
Read more in the [documenation](https://github.com/rife2/rife2-template-renderers/wiki).
|
Read more in the [documentation](https://github.com/rife2/rife2-template-renderers/wiki).
|
||||||
|
|
Binary file not shown.
|
@ -1,8 +1,8 @@
|
||||||
bld.downloadExtensionJavadoc=false
|
bld.downloadExtensionJavadoc=false
|
||||||
bld.downloadExtensionSources=true
|
bld.downloadExtensionSources=true
|
||||||
bld.downloadLocation=
|
bld.downloadLocation=
|
||||||
bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.7
|
bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.8
|
||||||
bld.extension-pmd=com.uwyn.rife2:bld-pmd:1.1.4
|
bld.extension-pmd=com.uwyn.rife2:bld-pmd:1.1.5
|
||||||
bld.extension-tests=com.uwyn.rife2:bld-tests-badge:1.4.6
|
bld.extension-tests=com.uwyn.rife2:bld-tests-badge:1.4.6
|
||||||
bld.repositories=MAVEN_CENTRAL,MAVEN_LOCAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
bld.repositories=MAVEN_CENTRAL,MAVEN_LOCAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
||||||
bld.version=2.0.1
|
bld.version=2.1.0
|
||||||
|
|
|
@ -48,10 +48,10 @@ public class TemplateRenderersBuild extends Project {
|
||||||
repositories = List.of(MAVEN_CENTRAL, RIFE2_RELEASES);
|
repositories = List.of(MAVEN_CENTRAL, RIFE2_RELEASES);
|
||||||
|
|
||||||
scope(compile)
|
scope(compile)
|
||||||
.include(dependency("com.uwyn.rife2", "rife2", version(1, 8, 0)));
|
.include(dependency("com.uwyn.rife2", "rife2", version(1, 9, 0)));
|
||||||
scope(test)
|
scope(test)
|
||||||
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 10, 3)))
|
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 11, 0)))
|
||||||
.include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 10, 3)))
|
.include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 11, 0)))
|
||||||
.include(dependency("org.assertj", "assertj-core", version(3, 26, 3)));
|
.include(dependency("org.assertj", "assertj-core", version(3, 26, 3)));
|
||||||
|
|
||||||
javadocOperation().javadocOptions()
|
javadocOperation().javadocOptions()
|
||||||
|
@ -75,13 +75,21 @@ public class TemplateRenderersBuild extends Project {
|
||||||
.name("RIFE2 Template Renderers")
|
.name("RIFE2 Template Renderers")
|
||||||
.description("Template Renderers for the RIFE2 web framework")
|
.description("Template Renderers for the RIFE2 web framework")
|
||||||
.url("https://github.com/rife2/rife2-template-renderers")
|
.url("https://github.com/rife2/rife2-template-renderers")
|
||||||
.developer(new PublishDeveloper().id("ethauvin").name("Erik C. Thauvin").email("erik@thauvin.net")
|
.developer(new PublishDeveloper()
|
||||||
|
.id("ethauvin")
|
||||||
|
.name("Erik C. Thauvin")
|
||||||
|
.email("erik@thauvin.net")
|
||||||
.url("https://erik.thauvin.net/"))
|
.url("https://erik.thauvin.net/"))
|
||||||
.developer(new PublishDeveloper().id("gbevin").name("Geert Bevin").email("gbevin@uwyn.com")
|
.developer(new PublishDeveloper()
|
||||||
|
.id("gbevin")
|
||||||
|
.name("Geert Bevin")
|
||||||
|
.email("gbevin@uwyn.com")
|
||||||
.url("https://github.com/gbevin"))
|
.url("https://github.com/gbevin"))
|
||||||
.license(new PublishLicense().name("The Apache License, Version 2.0")
|
.license(new PublishLicense()
|
||||||
|
.name("The Apache License, Version 2.0")
|
||||||
.url("https://www.apache.org/licenses/LICENSE-2.0.txt"))
|
.url("https://www.apache.org/licenses/LICENSE-2.0.txt"))
|
||||||
.scm(new PublishScm().connection("scm:git:https://github.com/rife2/rife2-template-renderers.git")
|
.scm(new PublishScm()
|
||||||
|
.connection("scm:git:https://github.com/rife2/rife2-template-renderers.git")
|
||||||
.developerConnection("scm:git:git@github.com:rife2/rife2-template-renderers.git")
|
.developerConnection("scm:git:git@github.com:rife2/rife2-template-renderers.git")
|
||||||
.url("https://github.com/rife2/rife2-template-renderers"))
|
.url("https://github.com/rife2/rife2-template-renderers"))
|
||||||
.signKey(property("signKey"))
|
.signKey(property("signKey"))
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
package rife.render;
|
package rife.render;
|
||||||
|
|
||||||
|
import org.assertj.core.api.AutoCloseableSoftAssertions;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
@ -127,10 +128,12 @@ class TestRenderUtils {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void testValidateCreditCard() {
|
void testValidateCreditCard() {
|
||||||
assertThat(RenderUtils.validateCreditCard("4505 4672 3366 6430")).as("visa").isTrue();
|
try (var softly = new AutoCloseableSoftAssertions()) {
|
||||||
assertThat(RenderUtils.validateCreditCard("5189-5923-3915-0425")).as("mastercard").isTrue();
|
softly.assertThat(RenderUtils.validateCreditCard("4505 4672 3366 6430")).as("visa").isTrue();
|
||||||
assertThat(RenderUtils.validateCreditCard("3433634926643302")).as("amex").isTrue();
|
softly.assertThat(RenderUtils.validateCreditCard("5189-5923-3915-0425")).as("mastercard").isTrue();
|
||||||
assertThat(RenderUtils.validateCreditCard("6011 1076-8252 0629")).as("discover").isTrue();
|
softly.assertThat(RenderUtils.validateCreditCard("3433634926643302")).as("amex").isTrue();
|
||||||
assertThat(RenderUtils.validateCreditCard("0123456789012345")).as("invalid").isFalse();
|
softly.assertThat(RenderUtils.validateCreditCard("6011 1076-8252 0629")).as("discover").isTrue();
|
||||||
|
softly.assertThat(RenderUtils.validateCreditCard("0123456789012345")).as("invalid").isFalse();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue