Lines Matching refs:fileName
46 * Checks expected fileName for the specified class in the SourceFile attribute.
49 * @param fileName expected name of the file from which the test file is compiled.
51 protected void test(Class<?> classToTest, String fileName) throws Exception {
52 assertAttributePresent(ClassFile.read(getClassFile(classToTest)), fileName);
56 * Checks expected fileName for the specified class in the SourceFile attribute.
59 * @param fileName expected name of the file from which the test file is compiled.
61 protected void test(String classToTest, String fileName) throws Exception {
62 assertAttributePresent(ClassFile.read(getClassFile(classToTest + ".class")), fileName);
66 * Checks expected fileName for the specified class in the SourceFile attribute.
69 * @param fileName expected name of the file from which the test file is compiled.
71 protected void test(Path classToTest, String fileName) throws Exception {
72 assertAttributePresent(ClassFile.read(classToTest), fileName);
85 String fileName = ToolBox.getJavaFileNameFromSource(sourceCode);
87 assertAttributePresent(ClassFile.read(classes.get(className).openInputStream()), fileName);
91 private void assertAttributePresent(ClassFile classFile, String fileName) throws Exception {
108 assertEquals(classFile.constant_pool.getUTF8Info(attribute.sourcefile_index).value, fileName,