diff options
author | Henri Sara <henri.sara@gmail.com> | 2017-05-26 10:39:52 +0300 |
---|---|---|
committer | Ilia Motornyi <elmot@vaadin.com> | 2017-05-26 10:39:52 +0300 |
commit | 791658f3534bcdbc754f82f1e21091e85a87c52a (patch) | |
tree | 282bdf0e133ca2ac6e820864f759d6e24f8187fe /test/dependency-rewrite-addon/src | |
parent | 870ac3dd370adf9634ee5e4d054647886e0c268a (diff) | |
download | vaadin-framework-791658f3534bcdbc754f82f1e21091e85a87c52a.tar.gz vaadin-framework-791658f3534bcdbc754f82f1e21091e85a87c52a.zip |
Use correct listener in dependency filter test
This fixes the test after the changes in #9368
Diffstat (limited to 'test/dependency-rewrite-addon/src')
-rw-r--r-- | test/dependency-rewrite-addon/src/main/java/com/vaadin/test/dependencyrewriteaddon/RewriteJQueryFilter.java | 11 | ||||
-rw-r--r-- | test/dependency-rewrite-addon/src/main/resources/META-INF/services/com.vaadin.server.VaadinServiceInitListener (renamed from test/dependency-rewrite-addon/src/main/resources/META-INF/services/com.vaadin.server.DependencyFilter) | 0 |
2 files changed, 10 insertions, 1 deletions
diff --git a/test/dependency-rewrite-addon/src/main/java/com/vaadin/test/dependencyrewriteaddon/RewriteJQueryFilter.java b/test/dependency-rewrite-addon/src/main/java/com/vaadin/test/dependencyrewriteaddon/RewriteJQueryFilter.java index 415bb9b093..3a317da46c 100644 --- a/test/dependency-rewrite-addon/src/main/java/com/vaadin/test/dependencyrewriteaddon/RewriteJQueryFilter.java +++ b/test/dependency-rewrite-addon/src/main/java/com/vaadin/test/dependencyrewriteaddon/RewriteJQueryFilter.java @@ -5,10 +5,13 @@ import java.util.List; import java.util.Locale; import com.vaadin.server.DependencyFilter; +import com.vaadin.server.ServiceInitEvent; +import com.vaadin.server.VaadinServiceInitListener; import com.vaadin.ui.Dependency; import com.vaadin.ui.Dependency.Type; -public class RewriteJQueryFilter implements DependencyFilter { +public class RewriteJQueryFilter + implements DependencyFilter, VaadinServiceInitListener { @Override public List<Dependency> filter(List<Dependency> dependencies, @@ -25,4 +28,10 @@ public class RewriteJQueryFilter implements DependencyFilter { } return filtered; } + + // for compactness, implementing the init listener here + @Override + public void serviceInit(ServiceInitEvent event) { + event.addDependencyFilter(this); + } } diff --git a/test/dependency-rewrite-addon/src/main/resources/META-INF/services/com.vaadin.server.DependencyFilter b/test/dependency-rewrite-addon/src/main/resources/META-INF/services/com.vaadin.server.VaadinServiceInitListener index f62efa26fd..f62efa26fd 100644 --- a/test/dependency-rewrite-addon/src/main/resources/META-INF/services/com.vaadin.server.DependencyFilter +++ b/test/dependency-rewrite-addon/src/main/resources/META-INF/services/com.vaadin.server.VaadinServiceInitListener |