File tree Expand file tree Collapse file tree 3 files changed +0
-24
lines changed
src/test/java/com/flowingcode/vaadin/addons/chipfield/integration Expand file tree Collapse file tree 3 files changed +0
-24
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff line change 2323
2424public interface IntegrationViewCallables {
2525
26- void testCallable (boolean arg );
27-
2826 void addValueChangeListener ();
2927
3028 void addItemRemovedListener ();
Original file line number Diff line number Diff line change 2121
2222import static org .hamcrest .MatcherAssert .assertThat ;
2323import static org .hamcrest .Matchers .isEmptyString ;
24- import static org .junit .Assert .assertThrows ;
2524import static org .junit .Assert .assertTrue ;
26-
2725import java .util .Arrays ;
2826import java .util .Collection ;
2927import 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 }
You can’t perform that action at this time.
0 commit comments