Skip to content

Commit 2b21199

Browse files
javier-godoypaodb
authored andcommitted
chore: remove RPC tests
1 parent 538b535 commit 2b21199

File tree

3 files changed

+0
-24
lines changed

3 files changed

+0
-24
lines changed

src/test/java/com/flowingcode/vaadin/addons/chipfield/integration/IntegrationView.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@ public IntegrationView() {
4545
field.setItems("Lorem", "Ipsum");
4646
}
4747

48-
@Override
49-
@ClientCallable
50-
public void testCallable(boolean arg) {
51-
if (!arg) {
52-
throw new IllegalArgumentException();
53-
}
54-
}
55-
5648
@Override
5749
@ClientCallable
5850
public void allowAdditionalItems(boolean value) {

src/test/java/com/flowingcode/vaadin/addons/chipfield/integration/IntegrationViewCallables.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323

2424
public interface IntegrationViewCallables {
2525

26-
void testCallable(boolean arg);
27-
2826
void addValueChangeListener();
2927

3028
void addItemRemovedListener();

src/test/java/com/flowingcode/vaadin/addons/chipfield/integration/ViewIT.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121

2222
import static org.hamcrest.MatcherAssert.assertThat;
2323
import static org.hamcrest.Matchers.isEmptyString;
24-
import static org.junit.Assert.assertThrows;
2524
import static org.junit.Assert.assertTrue;
26-
2725
import java.util.Arrays;
2826
import java.util.Collection;
2927
import org.hamcrest.Matcher;
@@ -48,18 +46,6 @@ public void testUpgradedToCustomElement() {
4846
assertThat(chipfield, hasBeenUpgradedToCustomElement);
4947
}
5048

51-
@Test
52-
public void testCallableSuccess() {
53-
// test that the callable mechanism works
54-
$server.testCallable(true);
55-
}
56-
57-
@Test
58-
public void testCallableFailure() {
59-
// test that the callable mechanism detect failures
60-
assertThrows(RuntimeException.class, () -> $server.testCallable(false));
61-
}
62-
6349
private Matcher<Collection<String>> isEqualTo(String... values) {
6450
return Matchers.equalTo(Arrays.asList(values));
6551
}

0 commit comments

Comments
 (0)