that's a tiny problem
This commit is contained in:
parent
8bd4b94807
commit
5a83645e8c
|
@ -0,0 +1,11 @@
|
|||
<component name="libraryTable">
|
||||
<library name="jsr305-2.0.1">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/../../java_console/lib/jsr305-2.0.1.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES>
|
||||
<root url="jar://$PROJECT_DIR$/../../java_console/lib/jsr305-2.0.1.jar!/" />
|
||||
</SOURCES>
|
||||
</library>
|
||||
</component>
|
|
@ -121,6 +121,23 @@ public class ConfigFieldParserTest {
|
|||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDefine() throws IOException {
|
||||
VariableRegistry.INSTANCE.clear();
|
||||
ReaderState state = new ReaderState();
|
||||
String test =
|
||||
"#define ERROR_BUFFER_SIZE 120\n" +
|
||||
"#define ERROR_BUFFER_SIZE_H 0x120\n" +
|
||||
"";
|
||||
BufferedReader reader = new BufferedReader(new StringReader(test));
|
||||
|
||||
JavaFieldsConsumer javaFieldsConsumer = new TestJavaFieldsConsumer(state);
|
||||
state.readBufferedReader(reader, Arrays.asList(javaFieldsConsumer));
|
||||
|
||||
assertEquals("\tpublic static final int ERROR_BUFFER_SIZE = 120;\n",
|
||||
VariableRegistry.INSTANCE.getJavaConstants());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFsioVisible() throws IOException {
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue