|
|
|
|
|
|
|
|
import static com.vaadin.tools.CvalChecker.parseJson; |
|
|
import static com.vaadin.tools.CvalChecker.parseJson; |
|
|
import static org.junit.Assert.assertEquals; |
|
|
import static org.junit.Assert.assertEquals; |
|
|
import static org.junit.Assert.assertNull; |
|
|
import static org.junit.Assert.assertNull; |
|
|
|
|
|
import static org.junit.Assert.assertTrue; |
|
|
|
|
|
|
|
|
import java.io.ByteArrayOutputStream; |
|
|
import java.io.ByteArrayOutputStream; |
|
|
import java.io.File; |
|
|
import java.io.File; |
|
|
|
|
|
|
|
|
Assert.fail(); |
|
|
Assert.fail(); |
|
|
} catch (InvalidCvalException expected) { |
|
|
} catch (InvalidCvalException expected) { |
|
|
assertEquals(productNameCval, expected.name); |
|
|
assertEquals(productNameCval, expected.name); |
|
|
|
|
|
assertTrue(expected.getMessage().contains("is not valid")); |
|
|
} |
|
|
} |
|
|
Assert.assertFalse(cacheExists(productNameCval)); |
|
|
Assert.assertFalse(cacheExists(productNameCval)); |
|
|
|
|
|
|