Skip to content

Commit f09c949

Browse files
committed
[#47] Ramaining test puzzles. Moved assertions for stask manipulation tokens to main.
1 parent e3eb18a commit f09c949

18 files changed

+346
-34
lines changed

atom-codegen/src/test/java/oo/atom/codegen/bytebuddy/smt/AssertStackManipulationProducesExpectedBytecode.java renamed to atom-codegen/src/main/java/oo/atom/codegen/bytebuddy/smt/AssertStackManipulationProducesExpectedBytecode.java

File renamed without changes.

atom-codegen/src/test/java/oo/atom/codegen/bytebuddy/smt/AssertStackManipulationsAreSame.java renamed to atom-codegen/src/main/java/oo/atom/codegen/bytebuddy/smt/AssertStackManipulationsAreSame.java

File renamed without changes.

atom-codegen/src/test/java/oo/atom/codegen/bytebuddy/smt/AssertTokenToRepresentExpectedStackManipulation.java renamed to atom-codegen/src/main/java/oo/atom/codegen/bytebuddy/smt/AssertTokenToRepresentExpectedStackManipulation.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
import java.util.function.Supplier;
2727
import net.bytebuddy.implementation.bytecode.StackManipulation;
28+
import oo.atom.codegen.bytebuddy.smt.StackManipulationToken;
2829
import oo.atom.tests.Assertion;
2930
import oo.atom.tests.InferredAssertion;
3031

atom-codegen/src/test/java/oo/atom/codegen/bytebuddy/smt/AssertTokensToRepresentIdenticalBytecode.java renamed to atom-codegen/src/main/java/oo/atom/codegen/bytebuddy/smt/AssertTokensToRepresentIdenticalBytecode.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
*/
2424
package oo.atom.codegen.bytebuddy.smt;
2525

26+
import oo.atom.codegen.bytebuddy.smt.StackManipulationToken;
2627
import oo.atom.tests.Assertion;
2728
import oo.atom.tests.InferredAssertion;
2829

atom-codegen/src/test/java/oo/atom/codegen/bytebuddy/smt/internals/MethodVisitorRecorder.java renamed to atom-codegen/src/main/java/oo/atom/codegen/bytebuddy/smt/internals/MethodVisitorRecorder.java

File renamed without changes.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* The MIT License
3+
*
4+
* Copyright 2017 Kapralov Sergey.
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
23+
*/
24+
package oo.atom.codegen.bytebuddy.bt;
25+
26+
import oo.atom.tests.AssertionsSuite;
27+
28+
/**
29+
* Tests suite for {@link AssertBuilderTransitionIsNotCorruptingClass}
30+
* @author Kapralov Sergey
31+
* @todo #47:15m Improve test coverage and mutation coverage for {@link AssertBuilderTransitionIsNotCorruptingClass}
32+
*/
33+
public class AssertBuilderTransitionIsNotCorruptingClassTest extends AssertionsSuite {
34+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* The MIT License
3+
*
4+
* Copyright 2017 Kapralov Sergey.
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
23+
*/
24+
package oo.atom.codegen.bytebuddy.bt;
25+
26+
import oo.atom.tests.AssertionsSuite;
27+
28+
/**
29+
* Tests suite for {@link AssertClassToHaveCertainMethodsAfterBuilderTransition}
30+
* @author Kapralov Sergey
31+
* @todo #47:15m Improve test coverage and mutation coverage for {@link AssertClassToHaveCertainMethodsAfterBuilderTransition}
32+
*/
33+
public class AssertClassToHaveCertainMethodsAfterBuilderTransitionTest extends AssertionsSuite {
34+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* The MIT License
3+
*
4+
* Copyright 2017 Kapralov Sergey.
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
23+
*/
24+
package oo.atom.codegen.bytebuddy.matchers;
25+
26+
import oo.atom.tests.AssertionsSuite;
27+
28+
/**
29+
* Tests suite for {@link AssertThatTypeDoesNotMatch}
30+
* @author Kapralov Sergey
31+
* @todo #47:15m Improve test coverage and mutation coverage for {@link AssertThatTypeDoesNotMatch}
32+
*/
33+
public class AssertThatTypeDoesNotMatchTest extends AssertionsSuite {
34+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* The MIT License
3+
*
4+
* Copyright 2017 Kapralov Sergey.
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
23+
*/
24+
package oo.atom.codegen.bytebuddy.matchers;
25+
26+
import oo.atom.tests.AssertionsSuite;
27+
28+
/**
29+
* Tests suite for {@link AssertThatTypeMatches}
30+
* @author Kapralov Sergey
31+
* @todo #47:15m Improve test coverage and mutation coverage for {@link AssertThatTypeMatches}
32+
*/
33+
public class AssertThatTypeMatchesTest extends AssertionsSuite {
34+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* The MIT License
3+
*
4+
* Copyright 2017 Kapralov Sergey.
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
23+
*/
24+
package oo.atom.codegen.bytebuddy.smt;
25+
26+
import oo.atom.tests.AssertionsSuite;
27+
28+
/**
29+
* Tests suite for {@link AssertStackManipulationProducesExpectedBytecode}
30+
* @author Kapralov Sergey
31+
* @todo #47:15m Improve test coverage and mutation coverage for {@link AssertStackManipulationProducesExpectedBytecode}
32+
*/
33+
public class AssertStackManipulationProducesExpectedBytecodeTest extends AssertionsSuite {
34+
}

0 commit comments

Comments
 (0)