소스 검색

More user friendly fail message (was NullPointerException) (#9665)

Yes, I should never have created "D:\eclipse workspaces" in the first
place.
No, I am not replacing "%20" with spaces, or creating an URI instance.
"D:\eclipse%20workspaces" is a valid folder and I'm not willing to go
down the rabbit hole and see what that turns into.
tags/8.1.0.rc2
Dos Moonen 6 년 전
부모
커밋
ce566c57fa
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6
    1
      server/src/test/java/com/vaadin/tests/CompileTransitionPropertyTest.java

+ 6
- 1
server/src/test/java/com/vaadin/tests/CompileTransitionPropertyTest.java 파일 보기

@@ -16,6 +16,7 @@
package com.vaadin.tests;

import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -31,8 +32,12 @@ public class CompileTransitionPropertyTest {

@Test
public void testCompilation() throws Exception {
String file = getClass().getResource("styles.scss").getFile();
if (file.contains("%20")) {
fail("path contains spaces, please move the project");
}
ScssStylesheet ss = ScssStylesheet
.get(getClass().getResource("styles.scss").getFile());
.get(file);
ss.compile();
// extract the style rules for .my-label
String compiled = ss.printState();

Loading…
취소
저장