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>
detectedKeys
static String
ENCODING
protected static org.apache.maven.plugin.logging.SystemStreamLog
log
protected org.nuiton.io.SortedProperties
oldParser
protected ParserJavaMojo.JavaFileParser
parser
-
Constructor Summary
Constructors Constructor Description JavaFileParserTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getDoubleTKeys()
Test que l'enchainement de deux appels t(t("")) est bien détecté.void
getJava8Keys()
Test que la synthax java 8 est supportée.void
getKeys()
void
getKeys2()
void
getKeys3()
void
getKeys4()
This is a special case for non affectation on "l(Locale.FRENCH, \"javaGetter.key3\");".protected void
parseLine(File f, String[] notExpectedKeys, String... expectedKeys)
void
setUp()
void
tearDown()
-
-
-
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 IOException
This is a special case for non affectation on "l(Locale.FRENCH, \"javaGetter.key3\");".- Throws:
IOException
-
getJava8Keys
public void getJava8Keys() throws IOException
Test que la synthax java 8 est supportée.- Throws:
IOException
-
getDoubleTKeys
public void getDoubleTKeys() throws IOException
Test 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
-
-