From a9e72f52ab20334e252ce25548a25bcc24f8b8f2 Mon Sep 17 00:00:00 2001 From: paulklint Date: Fri, 27 Sep 2024 13:03:45 +0200 Subject: [PATCH] Removed outdated test data --- .../patterns/micro/AugmentedType.java_src | 12 ------ .../test/data/patterns/micro/Canopy.java_src | 15 -------- .../data/patterns/micro/CobolLike.java_src | 11 ------ .../data/patterns/micro/CommonState.java_src | 11 ------ .../data/patterns/micro/CompoundBox.java_src | 22 ----------- .../data/patterns/micro/Designator.java_src | 5 --- .../data/patterns/micro/Designator2.java_src | 5 --- .../data/patterns/micro/Extender.java_src | 11 ------ .../micro/FunctionObjectAndBox.java_src | 15 -------- .../patterns/micro/FunctionPointer.java_src | 8 ---- .../ImmutableAndDataManagerAndSink.java_src | 20 ---------- .../data/patterns/micro/Implementor.java_src | 15 -------- .../micro/InterfaceWithMethods.java_src | 6 --- .../test/data/patterns/micro/Joiner.java_src | 5 --- .../test/data/patterns/micro/Joiner2.java_src | 8 ---- .../patterns/micro/OutlineAndTrait.java_src | 12 ------ .../data/patterns/micro/Overrider.java_src | 38 ------------------- .../micro/PoolAndRestrictedCreation.java_src | 6 --- .../data/patterns/micro/PseudoClass.java_src | 10 ----- .../data/patterns/micro/PureType.java_src | 8 ---- .../test/data/patterns/micro/Record.java_src | 7 ---- .../test/data/patterns/micro/Sampler.java_src | 9 ----- .../data/patterns/micro/StateMachine.java_src | 7 ---- .../micro/StatelessAndSampler.java_src | 24 ------------ .../data/patterns/micro/Taxonomy.java_src | 5 --- .../data/patterns/micro/Taxonomy2.java_src | 14 ------- 26 files changed, 309 deletions(-) delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/AugmentedType.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/Canopy.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/CobolLike.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/CommonState.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/CompoundBox.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/Designator.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/Designator2.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/Extender.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/FunctionObjectAndBox.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/FunctionPointer.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/ImmutableAndDataManagerAndSink.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/Implementor.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/InterfaceWithMethods.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/Joiner.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/Joiner2.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/OutlineAndTrait.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/Overrider.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/PoolAndRestrictedCreation.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/PseudoClass.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/PureType.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/Record.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/Sampler.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/StateMachine.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/StatelessAndSampler.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/Taxonomy.java_src delete mode 100644 test/org/rascalmpl/test/data/patterns/micro/Taxonomy2.java_src diff --git a/test/org/rascalmpl/test/data/patterns/micro/AugmentedType.java_src b/test/org/rascalmpl/test/data/patterns/micro/AugmentedType.java_src deleted file mode 100644 index 6baae8f4b3c..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/AugmentedType.java_src +++ /dev/null @@ -1,12 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -public abstract class AugmentedType { - public static final int A = 1; - public static final int B = 2; - public static final int C = 3; - - public abstract int bla(); - public void doIt() { - - } -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/Canopy.java_src b/test/org/rascalmpl/test/data/patterns/micro/Canopy.java_src deleted file mode 100644 index da136416444..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/Canopy.java_src +++ /dev/null @@ -1,15 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -public class Canopy { - - private int i; - - public Canopy(int i) { - this.i = i; - } - - public int getI() { - return i; - } - -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/CobolLike.java_src b/test/org/rascalmpl/test/data/patterns/micro/CobolLike.java_src deleted file mode 100644 index 666860ef3ab..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/CobolLike.java_src +++ /dev/null @@ -1,11 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -public class CobolLike { - - private static String HEADER = "Micro Patterns"; - - public static void main(String[] args) { - System.out.println("Header: " + HEADER); - } - -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/CommonState.java_src b/test/org/rascalmpl/test/data/patterns/micro/CommonState.java_src deleted file mode 100644 index a6d307f66d6..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/CommonState.java_src +++ /dev/null @@ -1,11 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -public class CommonState { - - private static int counter = 0; - - public int count() { - return counter++; - } - -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/CompoundBox.java_src b/test/org/rascalmpl/test/data/patterns/micro/CompoundBox.java_src deleted file mode 100644 index 94d430f82f4..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/CompoundBox.java_src +++ /dev/null @@ -1,22 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -public class CompoundBox { - - private Canopy c; - private int i; - - public CompoundBox(Canopy c, int i) { - this.c = c; - this.i = i; - } - - public Canopy toCanopy() { - return c; - } - - public int next() { - i = i+ 1; - return i; - } - -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/Designator.java_src b/test/org/rascalmpl/test/data/patterns/micro/Designator.java_src deleted file mode 100644 index 8681e5d53e2..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/Designator.java_src +++ /dev/null @@ -1,5 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -public interface Designator extends Cloneable { - -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/Designator2.java_src b/test/org/rascalmpl/test/data/patterns/micro/Designator2.java_src deleted file mode 100644 index 50b3fbcfb4d..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/Designator2.java_src +++ /dev/null @@ -1,5 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -public interface Designator2 { - -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/Extender.java_src b/test/org/rascalmpl/test/data/patterns/micro/Extender.java_src deleted file mode 100644 index 1767bcdb081..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/Extender.java_src +++ /dev/null @@ -1,11 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -import java.io.Flushable; -import java.io.IOException; - -public class Extender extends Overrider implements Flushable { - - void doStuff() throws IOException { - super.write(0xff); - } -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/FunctionObjectAndBox.java_src b/test/org/rascalmpl/test/data/patterns/micro/FunctionObjectAndBox.java_src deleted file mode 100644 index 67f20b10c9c..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/FunctionObjectAndBox.java_src +++ /dev/null @@ -1,15 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -public class FunctionObjectAndBox { - private int f; - - public FunctionObjectAndBox(int f) { - this.f = f; - } - - public int doStuff() { - f += 2; - return f * 2; - } - -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/FunctionPointer.java_src b/test/org/rascalmpl/test/data/patterns/micro/FunctionPointer.java_src deleted file mode 100644 index f9dd1358e14..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/FunctionPointer.java_src +++ /dev/null @@ -1,8 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -public class FunctionPointer { - public void doStuff() { - int a = 1 + 2; - } - -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/ImmutableAndDataManagerAndSink.java_src b/test/org/rascalmpl/test/data/patterns/micro/ImmutableAndDataManagerAndSink.java_src deleted file mode 100644 index afa003c6e03..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/ImmutableAndDataManagerAndSink.java_src +++ /dev/null @@ -1,20 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -public class ImmutableAndDataManagerAndSink { - private double f; - private int i; - - public ImmutableAndDataManagerAndSink(int i, double f) { - this.i = i; - this.f = f; - } - - public double getF() { - return f; - } - - public int getI() { - return i; - } - -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/Implementor.java_src b/test/org/rascalmpl/test/data/patterns/micro/Implementor.java_src deleted file mode 100644 index c6d58af2feb..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/Implementor.java_src +++ /dev/null @@ -1,15 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -public class Implementor extends PureType { - - @Override - public void a() { - - } - - @Override - public void b() { - - } - -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/InterfaceWithMethods.java_src b/test/org/rascalmpl/test/data/patterns/micro/InterfaceWithMethods.java_src deleted file mode 100644 index acf5fff316d..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/InterfaceWithMethods.java_src +++ /dev/null @@ -1,6 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -public interface InterfaceWithMethods { - void clear(); - -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/Joiner.java_src b/test/org/rascalmpl/test/data/patterns/micro/Joiner.java_src deleted file mode 100644 index 69ed3ec1a84..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/Joiner.java_src +++ /dev/null @@ -1,5 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -public interface Joiner extends Taxonomy, Designator { - -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/Joiner2.java_src b/test/org/rascalmpl/test/data/patterns/micro/Joiner2.java_src deleted file mode 100644 index 0bc3d2d637d..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/Joiner2.java_src +++ /dev/null @@ -1,8 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -public class Joiner2 implements Designator, Designator2 { - - public Joiner2() { - } - -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/OutlineAndTrait.java_src b/test/org/rascalmpl/test/data/patterns/micro/OutlineAndTrait.java_src deleted file mode 100644 index ce60a720afa..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/OutlineAndTrait.java_src +++ /dev/null @@ -1,12 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -public abstract class OutlineAndTrait { - abstract int doStuff(); - public void method1() { - doStuff(); - } - public void method2() { - doStuff(); - } - -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/Overrider.java_src b/test/org/rascalmpl/test/data/patterns/micro/Overrider.java_src deleted file mode 100644 index 7f6f4b21735..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/Overrider.java_src +++ /dev/null @@ -1,38 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -import java.io.BufferedOutputStream; -import java.io.IOException; - - -public class Overrider extends BufferedOutputStream { - public Overrider() { - super(null); - } - @Override - public void close() throws IOException { - // TODO Auto-generated method stub - super.close(); - } - @Override - public void write(byte[] b) throws IOException { - // TODO Auto-generated method stub - super.write(b); - } - @Override - public synchronized void write(byte[] b, int off, int len) - throws IOException { - // TODO Auto-generated method stub - super.write(b, off, len); - } - @Override - public synchronized void write(int b) throws IOException { - // TODO Auto-generated method stub - super.write(b); - } - @Override - public synchronized void flush() throws IOException { - // TODO Auto-generated method stub - super.flush(); - } - -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/PoolAndRestrictedCreation.java_src b/test/org/rascalmpl/test/data/patterns/micro/PoolAndRestrictedCreation.java_src deleted file mode 100644 index 6f67c9d4c62..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/PoolAndRestrictedCreation.java_src +++ /dev/null @@ -1,6 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -public class PoolAndRestrictedCreation { - public static final PoolAndRestrictedCreation field1 = new PoolAndRestrictedCreation(); - public static final int field2 = 2; -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/PseudoClass.java_src b/test/org/rascalmpl/test/data/patterns/micro/PseudoClass.java_src deleted file mode 100644 index 67819e84f4a..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/PseudoClass.java_src +++ /dev/null @@ -1,10 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -public abstract class PseudoClass { - abstract void a(); - abstract void b(); - public static final int C = 1; - public static void d() { - System.out.println(C * 2); - } -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/PureType.java_src b/test/org/rascalmpl/test/data/patterns/micro/PureType.java_src deleted file mode 100644 index dfcc066fab2..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/PureType.java_src +++ /dev/null @@ -1,8 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -public abstract class PureType { - - abstract void a(); - abstract void b(); - -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/Record.java_src b/test/org/rascalmpl/test/data/patterns/micro/Record.java_src deleted file mode 100644 index 0e9bb314e8a..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/Record.java_src +++ /dev/null @@ -1,7 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -public class Record { - public int i; - public String s; - public Canopy c; -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/Sampler.java_src b/test/org/rascalmpl/test/data/patterns/micro/Sampler.java_src deleted file mode 100644 index 24a9b5d17a7..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/Sampler.java_src +++ /dev/null @@ -1,9 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -public class Sampler { - public static Sampler field1 = new Sampler(); - - public Sampler() { - } - -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/StateMachine.java_src b/test/org/rascalmpl/test/data/patterns/micro/StateMachine.java_src deleted file mode 100644 index 0d80028006f..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/StateMachine.java_src +++ /dev/null @@ -1,7 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -public interface StateMachine { - boolean hasSteps(); - void doStep(); - -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/StatelessAndSampler.java_src b/test/org/rascalmpl/test/data/patterns/micro/StatelessAndSampler.java_src deleted file mode 100644 index 8432a50021a..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/StatelessAndSampler.java_src +++ /dev/null @@ -1,24 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -public class StatelessAndSampler { - - public static final StatelessAndSampler Instance = new StatelessAndSampler(); - - public StatelessAndSampler() { - } - - private static final int f = 0; - private static final String s = "s"; - - public int foo() { - return f * 2; - } - - public String bar() { - return s + s; - } - - public static String foobar() { - return s + f; - } -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/Taxonomy.java_src b/test/org/rascalmpl/test/data/patterns/micro/Taxonomy.java_src deleted file mode 100644 index de64f562a0f..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/Taxonomy.java_src +++ /dev/null @@ -1,5 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -public interface Taxonomy extends InterfaceWithMethods { - -} diff --git a/test/org/rascalmpl/test/data/patterns/micro/Taxonomy2.java_src b/test/org/rascalmpl/test/data/patterns/micro/Taxonomy2.java_src deleted file mode 100644 index 5661fc3753a..00000000000 --- a/test/org/rascalmpl/test/data/patterns/micro/Taxonomy2.java_src +++ /dev/null @@ -1,14 +0,0 @@ -package org.rascalmpl.test.data.patterns.micro; - -import java.util.*; - -public class Taxonomy2 extends ArrayList { - public Taxonomy2() { - super(); - } - - public Taxonomy2(Collection c) { - super(c); - } - -}