Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jsf/tests/org.eclipse.jst.jsf.core.tests/src/org/eclipse/jst/jsf/core/tests/facet/UserLibraryVersionValidatorProxy.java')
-rw-r--r--jsf/tests/org.eclipse.jst.jsf.core.tests/src/org/eclipse/jst/jsf/core/tests/facet/UserLibraryVersionValidatorProxy.java52
1 files changed, 52 insertions, 0 deletions
diff --git a/jsf/tests/org.eclipse.jst.jsf.core.tests/src/org/eclipse/jst/jsf/core/tests/facet/UserLibraryVersionValidatorProxy.java b/jsf/tests/org.eclipse.jst.jsf.core.tests/src/org/eclipse/jst/jsf/core/tests/facet/UserLibraryVersionValidatorProxy.java
new file mode 100644
index 000000000..0db855260
--- /dev/null
+++ b/jsf/tests/org.eclipse.jst.jsf.core.tests/src/org/eclipse/jst/jsf/core/tests/facet/UserLibraryVersionValidatorProxy.java
@@ -0,0 +1,52 @@
+/*******************************************************************************
+ * Copyright (c) 2001, 2008 Oracle Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Oracle Corporation - initial API and implementation
+ *******************************************************************************/
+
+
+package org.eclipse.jst.jsf.core.tests.facet;
+
+import java.io.IOException;
+import java.util.jar.JarFile;
+
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.jst.jsf.common.facet.libraryprovider.UserLibraryVersionValidator;
+
+
+/**
+ * "Proxy" class for the actual UserLibraryVersionValidator. This is only used so
+ * that the protected methods in UserLibraryVersionValidator can be tested.
+ *
+ * The test-cases have package-level access to these protected methods.
+ *
+ * @author Debajit Adhikary
+ *
+ */
+public class UserLibraryVersionValidatorProxy extends UserLibraryVersionValidator
+{
+ public UserLibraryVersionValidatorProxy (final String classNameIdentifyingJar)
+ {
+ super(classNameIdentifyingJar);
+ }
+
+
+ @Override
+ protected IStatus validateVersionStrings (final String facetVersion, final String libraryVersion)
+ {
+ return super.validateVersionStrings(facetVersion, libraryVersion);
+ }
+
+
+ @Override
+ protected String getLibraryVersion (final JarFile jarFile) throws IOException
+ {
+ return super.getLibraryVersion(jarFile);
+ }
+}

Back to the top