Skip to content

Commit 385f1af

Browse files
committed
test: add unit tests
1 parent aa010ea commit 385f1af

File tree

53 files changed

+1397
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1397
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.flowingcode.vaadin.jsonmigration;
2+
3+
import com.vaadin.flow.component.html.Div;
4+
5+
public abstract class BaseClientCallable extends Div {
6+
7+
private boolean traced;
8+
9+
protected final void trace() {
10+
traced = true;
11+
}
12+
13+
public boolean hasBeenTraced() {
14+
return traced;
15+
}
16+
17+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.flowingcode.vaadin.jsonmigration;
2+
3+
4+
import com.vaadin.flow.component.ClientCallable;
5+
6+
public class ClientCallable_D__V extends BaseClientCallable {
7+
8+
@ClientCallable
9+
public void test(double arg) {
10+
trace();
11+
}
12+
}
13+
14+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.flowingcode.vaadin.jsonmigration;
2+
3+
4+
import com.vaadin.flow.component.ClientCallable;
5+
6+
public class ClientCallable_I__V extends BaseClientCallable {
7+
8+
@ClientCallable
9+
public void test(int arg) {
10+
trace();
11+
}
12+
}
13+
14+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.flowingcode.vaadin.jsonmigration;
2+
3+
4+
import com.vaadin.flow.component.ClientCallable;
5+
6+
import elemental.json.JsonArray;
7+
8+
public class ClientCallable_JsonArray__V extends BaseClientCallable {
9+
10+
@ClientCallable
11+
public void test(JsonArray arg) {
12+
trace();
13+
}
14+
}
15+
16+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.flowingcode.vaadin.jsonmigration;
2+
3+
4+
import com.vaadin.flow.component.ClientCallable;
5+
6+
import elemental.json.JsonBoolean;
7+
8+
public class ClientCallable_JsonBoolean__V extends BaseClientCallable {
9+
10+
@ClientCallable
11+
public void test(JsonBoolean arg) {
12+
trace();
13+
}
14+
}
15+
16+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.flowingcode.vaadin.jsonmigration;
2+
3+
4+
import com.vaadin.flow.component.ClientCallable;
5+
6+
import elemental.json.JsonNull;
7+
8+
public class ClientCallable_JsonNull__V extends BaseClientCallable {
9+
10+
@ClientCallable
11+
public void test(JsonNull arg) {
12+
trace();
13+
}
14+
}
15+
16+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.flowingcode.vaadin.jsonmigration;
2+
3+
4+
import com.vaadin.flow.component.ClientCallable;
5+
6+
import elemental.json.JsonNumber;
7+
8+
public class ClientCallable_JsonNumber__V extends BaseClientCallable {
9+
10+
@ClientCallable
11+
public void test(JsonNumber arg) {
12+
trace();
13+
}
14+
}
15+
16+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.flowingcode.vaadin.jsonmigration;
2+
3+
4+
import com.vaadin.flow.component.ClientCallable;
5+
6+
import elemental.json.JsonObject;
7+
8+
public class ClientCallable_JsonObject__V extends BaseClientCallable {
9+
10+
@ClientCallable
11+
public void test(JsonObject arg) {
12+
trace();
13+
}
14+
}
15+
16+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.flowingcode.vaadin.jsonmigration;
2+
3+
4+
import com.vaadin.flow.component.ClientCallable;
5+
6+
import elemental.json.JsonString;
7+
8+
public class ClientCallable_JsonString__V extends BaseClientCallable {
9+
10+
@ClientCallable
11+
public void test(JsonString arg) {
12+
trace();
13+
}
14+
}
15+
16+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.flowingcode.vaadin.jsonmigration;
2+
3+
4+
import com.vaadin.flow.component.ClientCallable;
5+
6+
import elemental.json.JsonValue;
7+
8+
public class ClientCallable_JsonValue__V extends BaseClientCallable {
9+
10+
@ClientCallable
11+
public void test(JsonValue arg) {
12+
trace();
13+
}
14+
}
15+
16+

0 commit comments

Comments
 (0)