Skip to content

Commit

Permalink
add fake unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
bpapez committed Jul 19, 2016
1 parent d64da02 commit 0bc8f61
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
13 changes: 10 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
If you are unsure which license is appropriate for your use,
please contact the sales department at [email protected].
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>jahia-modules</artifactId>
<groupId>org.jahia.modules</groupId>
<version>7.0.0.0</version>
<version>7.0.0.8</version>
</parent>
<groupId>org.jahia.modules</groupId>
<artifactId>microdata</artifactId>
Expand All @@ -71,7 +71,14 @@
<url>https://devtools.jahia.com/nexus/content/groups/public</url>
</repository>
</repositories>
<dependencies></dependencies>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
Expand Down
20 changes: 20 additions & 0 deletions src/test/java/org/jahia/test/ExtendedfffffApiControllerTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

package org.jahia.test;

import java.util.regex.Pattern;

import junit.framework.Assert;

import org.junit.Test;

public class ExtendedfffffApiControllerTest {

@Test
public void regexpTest() {
Assert.assertTrue("/sites/mma.sag/contents/41/411201/agence/contactPDV"
.contains("/sites/mma.sag"));

Assert.assertTrue(Pattern.matches("^BSI\\d{4}$", "BSI7276"));
}

}

0 comments on commit 0bc8f61

Please sign in to comment.