Author: jjankovi
Date: 2012-06-26 09:34:38 -0400 (Tue, 26 Jun 2012)
New Revision: 42218
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/MessageLoggerAnnotationTest.java
Log:
new seam3 bot test MessageLoggerAnnotationTest implemented
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/MessageLoggerAnnotationTest.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/MessageLoggerAnnotationTest.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/MessageLoggerAnnotationTest.java 2012-06-26
13:34:38 UTC (rev 42218)
@@ -0,0 +1,50 @@
+/*******************************************************************************
+ * Copyright (c) 2010-2012 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.cdi.seam3.bot.test.tests;
+
+import org.jboss.tools.cdi.bot.test.annotations.ValidationType;
+import org.jboss.tools.cdi.bot.test.quickfix.validators.BeanValidationProvider;
+import org.jboss.tools.cdi.bot.test.quickfix.validators.IValidationProvider;
+import org.jboss.tools.cdi.seam3.bot.test.base.Seam3TestBase;
+import org.jboss.tools.cdi.seam3.bot.test.util.SeamLibrary;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ *
+ * @author jjankovi
+ *
+ */
+public class MessageLoggerAnnotationTest extends Seam3TestBase {
+
+ private static String projectName = "messageLogger";
+ private IValidationProvider validationProvider = new BeanValidationProvider();
+
+ @BeforeClass
+ public static void setup() {
+ importSeam3ProjectWithLibrary(projectName, SeamLibrary.SOLDER_3_1);
+ }
+
+ @Test
+ public void testMessageLoggerSupport() {
+
+ /* test there is not any validation error */
+ assertMessageLoggerIsInjectable();
+
+ }
+
+ private void assertMessageLoggerIsInjectable() {
+ assertNull("There is not bean eligible for injection to injection point
Logger",
+ quickFixHelper.getProblem(
+ ValidationType.NO_BEAN_ELIGIBLE, projectName, validationProvider));
+ }
+
+}