uncomment tests

This commit is contained in:
Boolean-true 2024-06-30 23:04:20 +02:00
parent b8bb09207b
commit 80b58ef5dd
2 changed files with 284 additions and 284 deletions

View File

@ -22,19 +22,19 @@ public class ForbiddenParticularitiesInImplementation {
"AddressingFieldWithoutThis.java"))); "AddressingFieldWithoutThis.java")));
} }
// @Test @Test
// public void ForbiddenParticularitiesInImplementationIMinusMinus() { public void ForbiddenParticularitiesInImplementationIMinusMinus() {
// assertThrows(Exception.class, () -> Compiler.generateByteCodeFilesFromFiles(List.of( assertThrows(Exception.class, () -> Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/ForbiddenParticularitiesInImplementation/" + "src/test/testFiles/Negative/ForbiddenParticularitiesInImplementation/" +
// "IMinusMinus.java"))); "IMinusMinus.java")));
// } }
//
// @Test @Test
// public void ForbiddenParticularitiesInImplementationIPlusPlus() { public void ForbiddenParticularitiesInImplementationIPlusPlus() {
// assertThrows(Exception.class, () -> Compiler.generateByteCodeFilesFromFiles(List.of( assertThrows(Exception.class, () -> Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/ForbiddenParticularitiesInImplementation/" + "src/test/testFiles/Negative/ForbiddenParticularitiesInImplementation/" +
// "IPlusPlus.java"))); "IPlusPlus.java")));
// } }
@Test @Test
public void ForbiddenParticularitiesInImplementationUsingSystemOut() { public void ForbiddenParticularitiesInImplementationUsingSystemOut() {

View File

@ -9,277 +9,277 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
public class MissingComponents { public class MissingComponents {
// @Test @Test
// public void MissingComponentsBraceInClass() { public void MissingComponentsBraceInClass() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Brace/InClass.java")); "src/test/testFiles/Negative/MissingComponents/Brace/InClass.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsBraceInConstructor() { public void MissingComponentsBraceInConstructor() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Brace/InConstructor.java")); "src/test/testFiles/Negative/MissingComponents/Brace/InConstructor.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsBraceInDoWhile() { public void MissingComponentsBraceInDoWhile() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Brace/InDoWhile.java")); "src/test/testFiles/Negative/MissingComponents/Brace/InDoWhile.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsBraceInFor() { public void MissingComponentsBraceInFor() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Brace/InFor.java")); "src/test/testFiles/Negative/MissingComponents/Brace/InFor.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsBraceInIf() { public void MissingComponentsBraceInIf() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Brace/InIf.java")); "src/test/testFiles/Negative/MissingComponents/Brace/InIf.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsBraceInMethod() { public void MissingComponentsBraceInMethod() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Brace/InMethod.java")); "src/test/testFiles/Negative/MissingComponents/Brace/InMethod.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsBraceInWhile() { public void MissingComponentsBraceInWhile() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Brace/InWhile.java")); "src/test/testFiles/Negative/MissingComponents/Brace/InWhile.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsIdentifierInClass() { public void MissingComponentsIdentifierInClass() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Identifier/InClass.java")); "src/test/testFiles/Negative/MissingComponents/Identifier/InClass.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsIdentifierInConstructor() { public void MissingComponentsIdentifierInConstructor() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Identifier/InConstructor.java")); "src/test/testFiles/Negative/MissingComponents/Identifier/InConstructor.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsIdentifierInField() { public void MissingComponentsIdentifierInField() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Identifier/InField.java")); "src/test/testFiles/Negative/MissingComponents/Identifier/InField.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsIdentifierInFieldCall() { public void MissingComponentsIdentifierInFieldCall() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Identifier/InFieldCall.java")); "src/test/testFiles/Negative/MissingComponents/Identifier/InFieldCall.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsIdentifierInMethod() { public void MissingComponentsIdentifierInMethod() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Identifier/InMethod.java")); "src/test/testFiles/Negative/MissingComponents/Identifier/InMethod.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsIdentifierInMethodCall() { public void MissingComponentsIdentifierInMethodCall() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Identifier/InMethodCall.java")); "src/test/testFiles/Negative/MissingComponents/Identifier/InMethodCall.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsIdentifierInVariable() { public void MissingComponentsIdentifierInVariable() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Identifier/InVariable.java")); "src/test/testFiles/Negative/MissingComponents/Identifier/InVariable.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsPublicInClass() { public void MissingComponentsPublicInClass() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Public/InClass.java")); "src/test/testFiles/Negative/MissingComponents/Public/InClass.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsPublicInMethod() { public void MissingComponentsPublicInMethod() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Public/InMethod.java")); "src/test/testFiles/Negative/MissingComponents/Public/InMethod.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsRoundBracketsInConstructor() { public void MissingComponentsRoundBracketsInConstructor() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/RoundBrackets/InConstructor.java")); "src/test/testFiles/Negative/MissingComponents/RoundBrackets/InConstructor.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsRoundBracketsInDoWhile() { public void MissingComponentsRoundBracketsInDoWhile() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/RoundBrackets/InDoWhile.java")); "src/test/testFiles/Negative/MissingComponents/RoundBrackets/InDoWhile.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsRoundBracketsInElseIf() { public void MissingComponentsRoundBracketsInElseIf() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/RoundBrackets/InElseIf.java")); "src/test/testFiles/Negative/MissingComponents/RoundBrackets/InElseIf.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsRoundBracketsInFor() { public void MissingComponentsRoundBracketsInFor() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/RoundBrackets/InFor.java")); "src/test/testFiles/Negative/MissingComponents/RoundBrackets/InFor.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsRoundBracketsInIf() { public void MissingComponentsRoundBracketsInIf() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/RoundBrackets/InIf.java")); "src/test/testFiles/Negative/MissingComponents/RoundBrackets/InIf.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsRoundBracketsInMethod() { public void MissingComponentsRoundBracketsInMethod() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/RoundBrackets/InMethod.java")); "src/test/testFiles/Negative/MissingComponents/RoundBrackets/InMethod.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsRoundBracketsInMethodCall() { public void MissingComponentsRoundBracketsInMethodCall() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/RoundBrackets/InMethodCall.java")); "src/test/testFiles/Negative/MissingComponents/RoundBrackets/InMethodCall.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsRoundBracketsInNewObject() { public void MissingComponentsRoundBracketsInNewObject() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/RoundBrackets/InNewObject.java")); "src/test/testFiles/Negative/MissingComponents/RoundBrackets/InNewObject.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsRoundBracketsInWhile() { public void MissingComponentsRoundBracketsInWhile() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/RoundBrackets/InWhile.java")); "src/test/testFiles/Negative/MissingComponents/RoundBrackets/InWhile.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsSemicolonInAssignment() { public void MissingComponentsSemicolonInAssignment() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Semicolon/InAssignment.java")); "src/test/testFiles/Negative/MissingComponents/Semicolon/InAssignment.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsSemicolonInDoWhile() { public void MissingComponentsSemicolonInDoWhile() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Semicolon/InDoWhile.java")); "src/test/testFiles/Negative/MissingComponents/Semicolon/InDoWhile.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsSemicolonInField() { public void MissingComponentsSemicolonInField() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Semicolon/InField.java")); "src/test/testFiles/Negative/MissingComponents/Semicolon/InField.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsSemicolonInMethodCall() { public void MissingComponentsSemicolonInMethodCall() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Semicolon/InMethodCall.java")); "src/test/testFiles/Negative/MissingComponents/Semicolon/InMethodCall.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsSemicolonInReturn() { public void MissingComponentsSemicolonInReturn() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Semicolon/InReturn.java")); "src/test/testFiles/Negative/MissingComponents/Semicolon/InReturn.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsTypeInField() { public void MissingComponentsTypeInField() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Type/InField.java")); "src/test/testFiles/Negative/MissingComponents/Type/InField.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsTypeInMethodSignature() { public void MissingComponentsTypeInMethodSignature() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Type/InMethodSignature.java")); "src/test/testFiles/Negative/MissingComponents/Type/InMethodSignature.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsTypeInParameter() { public void MissingComponentsTypeInParameter() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/Type/InParameter.java")); "src/test/testFiles/Negative/MissingComponents/Type/InParameter.java"));
// }); });
// } }
//
// @Test @Test
// public void MissingComponentsClassInClass() { public void MissingComponentsClassInClass() {
// assertThrows(Exception.class, () -> { assertThrows(Exception.class, () -> {
// Compiler.generateByteCodeFilesFromFiles(List.of( Compiler.generateByteCodeFilesFromFiles(List.of(
// "src/test/testFiles/Negative/MissingComponents/ClassInClass.java")); "src/test/testFiles/Negative/MissingComponents/ClassInClass.java"));
// }); });
// } }
@Test @Test
public void MissingComponentsClassOfObject() { public void MissingComponentsClassOfObject() {