File tree Expand file tree Collapse file tree 3 files changed +26
-22
lines changed
Expand file tree Collapse file tree 3 files changed +26
-22
lines changed Original file line number Diff line number Diff line change 3333}
3434
3535dependencies {
36- // annotationProcessor project(":jabel-javac-plugin")
36+ annotationProcessor project(" :jabel-javac-plugin" )
3737
3838 testCompile ' junit:junit:4.12'
3939}
Original file line number Diff line number Diff line change @@ -65,18 +65,18 @@ public String innerPublic() {
6565 }
6666
6767
68- public void whenSwitchingOnOperationSquareMe_thenWillReturnSquare () {
69- var me = 4 ;
70- var operation = "squareMe" ;
71- var result = switch (operation ) {
72- case "doubleMe" -> {
73- yield me * 2 ;
74- }
75- case "squareMe" -> {
76- yield me * me ;
77- }
78- default -> me ;
79- };
80-
81- }
68+ // public void whenSwitchingOnOperationSquareMe_thenWillReturnSquare() {
69+ // var me = 4;
70+ // var operation = "squareMe";
71+ // var result = switch (operation) {
72+ // case "doubleMe" -> {
73+ // yield me * 2;
74+ // }
75+ // case "squareMe" -> {
76+ // yield me * me;
77+ // }
78+ // default -> me;
79+ // };
80+ //
81+ // }
8282}
Original file line number Diff line number Diff line change @@ -37,8 +37,12 @@ public void testJava13PreviewFeatureTextBlocksJep355(){
3737""" ;
3838 }
3939
40+ /**
41+ * JEP 354: Switch Expressions (Second Preview)
42+ * https://openjdk.java.net/jeps/354
43+ */
4044 @ Test
41- public void whenSwitchingOnOperationSquareMe_thenWillReturnSquare () {
45+ public void testJava13PreviewJep354 () {
4246 var me = 4 ;
4347 var operation = "squareMe" ;
4448 var result = switch (operation ) {
@@ -53,11 +57,11 @@ public void whenSwitchingOnOperationSquareMe_thenWillReturnSquare() {
5357
5458 assertEquals (16 , result );
5559 }
56-
57- @ Test
58- public void tgesd (){
59- JabelExampleTest jabelExampleTest = new JabelExampleTest ();
60- jabelExampleTest .whenSwitchingOnOperationSquareMe_thenWillReturnSquare ();
61- }
60+ //
61+ // @Test
62+ // public void tgesd(){
63+ // JabelExampleTest jabelExampleTest = new JabelExampleTest();
64+ // jabelExampleTest.whenSwitchingOnOperationSquareMe_thenWillReturnSquare();
65+ // }
6266
6367}
You can’t perform that action at this time.
0 commit comments