Class JavaFileParserTest
- java.lang.Object
-
- org.nuiton.i18n.plugin.parser.impl.JavaFileParserTest
-
public class JavaFileParserTest extends Object
Tests the classParserJavaMojo.JavaFileParser- Since:
- 2.3
- Author:
- Tony Chemit - chemit@codelutin.com
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<String>detectedKeysstatic StringENCODINGprotected static org.apache.maven.plugin.logging.SystemStreamLoglogprotected org.nuiton.io.SortedPropertiesoldParserprotected ParserJavaMojo.JavaFileParserparser
-
Constructor Summary
Constructors Constructor Description JavaFileParserTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgetDoubleTKeys()Test que l'enchainement de deux appels t(t("")) est bien détecté.voidgetJava8Keys()Test que la synthax java 8 est supportée.voidgetKeys()voidgetKeys2()voidgetKeys3()voidgetKeys4()This is a special case for non affectation on "l(Locale.FRENCH, \"javaGetter.key3\");".protected voidparseLine(File f, String[] notExpectedKeys, String... expectedKeys)voidsetUp()voidtearDown()
-
-
-
Field Detail
-
ENCODING
public static final String ENCODING
- See Also:
- Constant Field Values
-
log
protected static final org.apache.maven.plugin.logging.SystemStreamLog log
-
parser
protected ParserJavaMojo.JavaFileParser parser
-
oldParser
protected org.nuiton.io.SortedProperties oldParser
-
-
Method Detail
-
setUp
public void setUp()
-
tearDown
public void tearDown()
-
getKeys
public void getKeys() throws IOException- Throws:
IOException
-
getKeys2
public void getKeys2() throws IOException- Throws:
IOException
-
getKeys3
public void getKeys3() throws IOException- Throws:
IOException
-
getKeys4
public void getKeys4() throws IOExceptionThis is a special case for non affectation on "l(Locale.FRENCH, \"javaGetter.key3\");".- Throws:
IOException
-
getJava8Keys
public void getJava8Keys() throws IOExceptionTest que la synthax java 8 est supportée.- Throws:
IOException
-
getDoubleTKeys
public void getDoubleTKeys() throws IOExceptionTest que l'enchainement de deux appels t(t("")) est bien détecté.- Throws:
IOException
-
parseLine
protected void parseLine(File f, String[] notExpectedKeys, String... expectedKeys) throws IOException
- Throws:
IOException
-
-