Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

UnknownComponentConnectorTest.java 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright 2000-2014 Vaadin Ltd.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. * use this file except in compliance with the License. You may obtain a copy of
  6. * the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. * License for the specific language governing permissions and limitations under
  14. * the License.
  15. */
  16. package com.vaadin.tests.components;
  17. import static org.junit.Assert.assertTrue;
  18. import org.junit.Test;
  19. import org.openqa.selenium.WebElement;
  20. import com.vaadin.tests.tb3.MultiBrowserTest;
  21. /**
  22. * Tests that a user is notified about a missing component from the widgetset
  23. */
  24. public class UnknownComponentConnectorTest extends MultiBrowserTest {
  25. @Test
  26. public void testConnectorNotFoundInWidgetset() throws Exception {
  27. openTestURL();
  28. WebElement component = vaadinElementById("no-connector-component");
  29. assertTrue(component.getText().startsWith(
  30. "Widgetset 'com.vaadin.DefaultWidgetSet' does not contain an "
  31. + "implementation for com.vaadin.tests.components.UnknownComponentConnector."
  32. + "ComponentWithoutConnector."));
  33. }
  34. }