diff options
author | Artur Signell <artur@vaadin.com> | 2013-09-02 22:37:59 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-09-26 06:10:13 +0000 |
commit | 6d0c6e094fe5ee1253701bd4c897be9e29eea11a (patch) | |
tree | 9f6322b7cd2762817b6198a99a336647de477cb2 /theme-compiler/tests | |
parent | 3940d851365ce4d18c599893aed7dfa4b5e0f46f (diff) | |
download | vaadin-framework-6d0c6e094fe5ee1253701bd4c897be9e29eea11a.tar.gz vaadin-framework-6d0c6e094fe5ee1253701bd4c897be9e29eea11a.zip |
Moved import resolving logic to resolvers (#11776)
* made resolvers style sheet specific
Change-Id: Iab7e755d9e3214896c100dfde10727a1353c4354
Diffstat (limited to 'theme-compiler/tests')
-rw-r--r-- | theme-compiler/tests/src/com/vaadin/sass/resolvers/VaadinResolverTest.java | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/theme-compiler/tests/src/com/vaadin/sass/resolvers/VaadinResolverTest.java b/theme-compiler/tests/src/com/vaadin/sass/resolvers/VaadinResolverTest.java index 59b49888c2..0183142747 100644 --- a/theme-compiler/tests/src/com/vaadin/sass/resolvers/VaadinResolverTest.java +++ b/theme-compiler/tests/src/com/vaadin/sass/resolvers/VaadinResolverTest.java @@ -40,16 +40,26 @@ import java.lang.reflect.Method; import org.junit.Assert; import org.junit.Test; -import com.vaadin.sass.internal.resolver.VaadinResolver; +import com.vaadin.sass.internal.resolver.AbstractResolver; +import com.vaadin.sass.internal.resolver.ClassloaderResolver; +import com.vaadin.sass.internal.resolver.FilesystemResolver; public class VaadinResolverTest { @Test - public void testPathNormalization() throws Exception { + public void testFilesystemResolverPathNormalization() throws Exception { + testPathNormalization(new FilesystemResolver()); + } + + @Test + public void testClassloaderResolverPathNormalization() throws Exception { + testPathNormalization(new ClassloaderResolver()); + } - VaadinResolver resolver = new VaadinResolver(); + public void testPathNormalization(AbstractResolver resolver) + throws Exception { - Method normalizeMethod = VaadinResolver.class.getDeclaredMethod( + Method normalizeMethod = AbstractResolver.class.getDeclaredMethod( "normalize", String.class); normalizeMethod.setAccessible(true); |