You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by st...@apache.org on 2021/03/04 12:29:27 UTC
[deltaspike] branch master updated: DELTASPIKE-1423 fix weird
Spelling error
This is an automated email from the ASF dual-hosted git repository.
struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/deltaspike.git
The following commit(s) were added to refs/heads/master by this push:
new 1a37ce7 DELTASPIKE-1423 fix weird Spelling error
1a37ce7 is described below
commit 1a37ce7935176b5c51498b911b879e053e22fbd1
Author: Mark Struberg <st...@apache.org>
AuthorDate: Thu Mar 4 13:26:07 2021 +0100
DELTASPIKE-1423 fix weird Spelling error
which also caused not being able to find a component in our test
---
.../jsf/impl/injection/uc001/AnotherBeanConverter.java | 2 +-
.../jsf/impl/injection/uc001/InjectionDroneTest.java | 16 ++++++++--------
.../jsf/impl/injection/uc002/AnotherBeanConverter.java | 2 +-
.../jsf/impl/injection/uc002/InjectionDroneTest.java | 16 ++++++++--------
.../jsf/impl/injection/uc003/AnotherBeanConverter.java | 2 +-
.../jsf/impl/injection/uc003/InjectionDroneTest.java | 16 ++++++++--------
.../jsf/impl/injection/uc004/AnotherBeanConverter.java | 2 +-
.../jsf/impl/injection/uc004/InjectionDroneTest.java | 8 ++++----
.../jsf/impl/src/test/resources/META-INF/test.taglib.xml | 4 ++--
.../resources/injection/testValidatorConverter.xhtml | 4 ++--
.../resources/injection/testValidatorConverterTag.xhtml | 6 +++---
11 files changed, 39 insertions(+), 39 deletions(-)
diff --git a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc001/AnotherBeanConverter.java b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc001/AnotherBeanConverter.java
index 885923d..fdd8954 100644
--- a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc001/AnotherBeanConverter.java
+++ b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc001/AnotherBeanConverter.java
@@ -26,7 +26,7 @@ import javax.faces.convert.ConverterException;
import javax.faces.convert.FacesConverter;
import javax.inject.Inject;
-@FacesConverter("myValueConveter")
+@FacesConverter("myValueConverter")
public class AnotherBeanConverter implements Converter
{
diff --git a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc001/InjectionDroneTest.java b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc001/InjectionDroneTest.java
index 3999e7b..64e542b 100644
--- a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc001/InjectionDroneTest.java
+++ b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc001/InjectionDroneTest.java
@@ -71,8 +71,8 @@ public class InjectionDroneTest
driver.get(new URL(contextPath, "testValidatorConverter.xhtml").toString());
WebElement convertedValue = driver.findElement(By.id("converter:convertedValue"));
convertedValue.sendKeys("123");
- WebElement testConveterButton = driver.findElement(By.id("converter:testConveterButton"));
- testConveterButton.click();
+ WebElement testConverterButton = driver.findElement(By.id("converter:testConverterButton"));
+ testConverterButton.click();
Assert.assertTrue(ExpectedConditions.textToBePresentInElement(By.id("messages"), "Worked").apply(driver));
}
@@ -83,8 +83,8 @@ public class InjectionDroneTest
driver.get(new URL(contextPath, "testValidatorConverter.xhtml").toString());
WebElement convertedValue = driver.findElement(By.id("converter:convertedValue"));
convertedValue.sendKeys("String Value");
- WebElement testConveterButton = driver.findElement(By.id("converter:testConverterButton"));
- testConveterButton.click();
+ WebElement testConverterButton = driver.findElement(By.id("converter:testConverterButton"));
+ testConverterButton.click();
Assert.assertTrue(ExpectedConditions.textToBePresentInElement(By.id("converter:errorMessage"), "Value is not an Integer").apply(driver));
}
@@ -95,8 +95,8 @@ public class InjectionDroneTest
driver.get(new URL(contextPath, "testValidatorConverter.xhtml").toString());
WebElement convertedValue = driver.findElement(By.id("validator:stringValue"));
convertedValue.sendKeys("DeltaSpike");
- WebElement testConveterButton = driver.findElement(By.id("validator:testValidatorButton"));
- testConveterButton.click();
+ WebElement testConverterButton = driver.findElement(By.id("validator:testValidatorButton"));
+ testConverterButton.click();
Assert.assertTrue(ExpectedConditions.textToBePresentInElement(By.id("messages"), "Worked").apply(driver));
}
@@ -107,8 +107,8 @@ public class InjectionDroneTest
driver.get(new URL(contextPath, "testValidatorConverter.xhtml").toString());
WebElement convertedValue = driver.findElement(By.id("validator:stringValue"));
convertedValue.sendKeys("Wrong Value");
- WebElement testConveterButton = driver.findElement(By.id("validator:testValidatorButton"));
- testConveterButton.click();
+ WebElement testConverterButton = driver.findElement(By.id("validator:testValidatorButton"));
+ testConverterButton.click();
Assert.assertTrue(ExpectedConditions.textToBePresentInElement(By.id("validator:errorMessage"), "Not a valid value").apply(driver));
}
}
diff --git a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc002/AnotherBeanConverter.java b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc002/AnotherBeanConverter.java
index d4aea0b..3063c98 100644
--- a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc002/AnotherBeanConverter.java
+++ b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc002/AnotherBeanConverter.java
@@ -28,7 +28,7 @@ import javax.faces.convert.FacesConverter;
import javax.inject.Inject;
@RequestScoped
-@FacesConverter("myValueConveter")
+@FacesConverter("myValueConverter")
public class AnotherBeanConverter implements Converter
{
diff --git a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc002/InjectionDroneTest.java b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc002/InjectionDroneTest.java
index 6b3b8d9..392c728 100644
--- a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc002/InjectionDroneTest.java
+++ b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc002/InjectionDroneTest.java
@@ -70,8 +70,8 @@ public class InjectionDroneTest
driver.get(new URL(contextPath, "testValidatorConverter.xhtml").toString());
WebElement convertedValue = driver.findElement(By.id("converter:convertedValue"));
convertedValue.sendKeys("123");
- WebElement testConveterButton = driver.findElement(By.id("converter:testConveterButton"));
- testConveterButton.click();
+ WebElement testConverterButton = driver.findElement(By.id("converter:testConverterButton"));
+ testConverterButton.click();
Assert.assertTrue(ExpectedConditions.textToBePresentInElement(By.id("messages"), "Worked").apply(driver));
}
@@ -82,8 +82,8 @@ public class InjectionDroneTest
driver.get(new URL(contextPath, "testValidatorConverter.xhtml").toString());
WebElement convertedValue = driver.findElement(By.id("converter:convertedValue"));
convertedValue.sendKeys("String Value");
- WebElement testConveterButton = driver.findElement(By.id("converter:testConveterButton"));
- testConveterButton.click();
+ WebElement testConverterButton = driver.findElement(By.id("converter:testConverterButton"));
+ testConverterButton.click();
Assert.assertTrue(ExpectedConditions.textToBePresentInElement(By.id("converter:errorMessage"), "Value is not an Integer").apply(driver));
}
@@ -94,8 +94,8 @@ public class InjectionDroneTest
driver.get(new URL(contextPath, "testValidatorConverter.xhtml").toString());
WebElement convertedValue = driver.findElement(By.id("validator:stringValue"));
convertedValue.sendKeys("DeltaSpike");
- WebElement testConveterButton = driver.findElement(By.id("validator:testValidatorButton"));
- testConveterButton.click();
+ WebElement testConverterButton = driver.findElement(By.id("validator:testValidatorButton"));
+ testConverterButton.click();
Assert.assertTrue(ExpectedConditions.textToBePresentInElement(By.id("messages"), "Worked").apply(driver));
}
@@ -106,8 +106,8 @@ public class InjectionDroneTest
driver.get(new URL(contextPath, "testValidatorConverter.xhtml").toString());
WebElement convertedValue = driver.findElement(By.id("validator:stringValue"));
convertedValue.sendKeys("Wrong Value");
- WebElement testConveterButton = driver.findElement(By.id("validator:testValidatorButton"));
- testConveterButton.click();
+ WebElement testConverterButton = driver.findElement(By.id("validator:testValidatorButton"));
+ testConverterButton.click();
Assert.assertTrue(ExpectedConditions.textToBePresentInElement(By.id("validator:errorMessage"), "Not a valid value").apply(driver));
}
}
diff --git a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc003/AnotherBeanConverter.java b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc003/AnotherBeanConverter.java
index 640caaa..77d813e 100644
--- a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc003/AnotherBeanConverter.java
+++ b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc003/AnotherBeanConverter.java
@@ -26,7 +26,7 @@ import javax.faces.convert.ConverterException;
import javax.faces.convert.FacesConverter;
import javax.inject.Inject;
-@FacesConverter("myValueConveter")
+@FacesConverter("myValueConverter")
public class AnotherBeanConverter extends AbstractStateHolder implements Converter
{
diff --git a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc003/InjectionDroneTest.java b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc003/InjectionDroneTest.java
index 05c8699..16bb325 100644
--- a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc003/InjectionDroneTest.java
+++ b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc003/InjectionDroneTest.java
@@ -72,8 +72,8 @@ public class InjectionDroneTest
driver.get(new URL(contextPath, "testValidatorConverter.xhtml").toString());
WebElement convertedValue = driver.findElement(By.id("converter:convertedValue"));
convertedValue.sendKeys("123");
- WebElement testConveterButton = driver.findElement(By.id("converter:testConveterButton"));
- testConveterButton.click();
+ WebElement testConverterButton = driver.findElement(By.id("converter:testConverterButton"));
+ testConverterButton.click();
Assert.assertTrue(ExpectedConditions.textToBePresentInElement(By.id("messages"), "Worked").apply(driver));
}
@@ -84,8 +84,8 @@ public class InjectionDroneTest
driver.get(new URL(contextPath, "testValidatorConverter.xhtml").toString());
WebElement convertedValue = driver.findElement(By.id("converter:convertedValue"));
convertedValue.sendKeys("String Value");
- WebElement testConveterButton = driver.findElement(By.id("converter:testConveterButton"));
- testConveterButton.click();
+ WebElement testConverterButton = driver.findElement(By.id("converter:testConverterButton"));
+ testConverterButton.click();
Assert.assertTrue(ExpectedConditions.textToBePresentInElement(By.id("converter:errorMessage"),
"Value is not an Integer").apply(driver));
}
@@ -97,8 +97,8 @@ public class InjectionDroneTest
driver.get(new URL(contextPath, "testValidatorConverter.xhtml").toString());
WebElement convertedValue = driver.findElement(By.id("validator:stringValue"));
convertedValue.sendKeys("DeltaSpike");
- WebElement testConveterButton = driver.findElement(By.id("validator:testValidatorButton"));
- testConveterButton.click();
+ WebElement testConverterButton = driver.findElement(By.id("validator:testValidatorButton"));
+ testConverterButton.click();
Assert.assertTrue(ExpectedConditions.textToBePresentInElement(By.id("messages"), "Worked").apply(driver));
}
@@ -109,8 +109,8 @@ public class InjectionDroneTest
driver.get(new URL(contextPath, "testValidatorConverter.xhtml").toString());
WebElement convertedValue = driver.findElement(By.id("validator:stringValue"));
convertedValue.sendKeys("Wrong Value");
- WebElement testConveterButton = driver.findElement(By.id("validator:testValidatorButton"));
- testConveterButton.click();
+ WebElement testConverterButton = driver.findElement(By.id("validator:testValidatorButton"));
+ testConverterButton.click();
Assert.assertTrue(ExpectedConditions.textToBePresentInElement(By.id("validator:errorMessage"),
"Not a valid value").apply(driver));
}
diff --git a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc004/AnotherBeanConverter.java b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc004/AnotherBeanConverter.java
index 48fe153..6f7056c 100644
--- a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc004/AnotherBeanConverter.java
+++ b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc004/AnotherBeanConverter.java
@@ -26,7 +26,7 @@ import javax.faces.convert.ConverterException;
import javax.faces.convert.FacesConverter;
import javax.inject.Inject;
-@FacesConverter("myValueConveter")
+@FacesConverter("myValueConverter")
public class AnotherBeanConverter implements Converter
{
diff --git a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc004/InjectionDroneTest.java b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc004/InjectionDroneTest.java
index 3ec75f4..a5b00cd 100644
--- a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc004/InjectionDroneTest.java
+++ b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/injection/uc004/InjectionDroneTest.java
@@ -72,8 +72,8 @@ public class InjectionDroneTest
driver.get(new URL(contextPath, "testValidatorConverter.xhtml").toString());
WebElement convertedValue = driver.findElement(By.id("validator:stringValue"));
convertedValue.sendKeys("DeltaSpike");
- WebElement testConveterButton = driver.findElement(By.id("validator:testValidatorButton"));
- testConveterButton.click();
+ WebElement testConverterButton = driver.findElement(By.id("validator:testValidatorButton"));
+ testConverterButton.click();
Assert.assertTrue(ExpectedConditions.textToBePresentInElement(By.id("messages"), "Worked").apply(driver));
}
@@ -84,8 +84,8 @@ public class InjectionDroneTest
driver.get(new URL(contextPath, "testValidatorConverter.xhtml").toString());
WebElement convertedValue = driver.findElement(By.id("validator:stringValue"));
convertedValue.sendKeys("Wrong Value");
- WebElement testConveterButton = driver.findElement(By.id("validator:testValidatorButton"));
- testConveterButton.click();
+ WebElement testConverterButton = driver.findElement(By.id("validator:testValidatorButton"));
+ testConverterButton.click();
Assert.assertTrue(ExpectedConditions.textToBePresentInElement(By.id("validator:errorMessage"),
"The valid value should be DeltaSpike").apply(driver));
}
diff --git a/deltaspike/modules/jsf/impl/src/test/resources/META-INF/test.taglib.xml b/deltaspike/modules/jsf/impl/src/test/resources/META-INF/test.taglib.xml
index d944b66..7d08249 100644
--- a/deltaspike/modules/jsf/impl/src/test/resources/META-INF/test.taglib.xml
+++ b/deltaspike/modules/jsf/impl/src/test/resources/META-INF/test.taglib.xml
@@ -27,9 +27,9 @@
</validator>
</tag>
<tag>
- <tag-name>myValueConveter</tag-name>
+ <tag-name>myValueConverter</tag-name>
<converter>
- <converter-id>myValueConveter</converter-id>
+ <converter-id>myValueConverter</converter-id>
</converter>
</tag>
</facelet-taglib>
\ No newline at end of file
diff --git a/deltaspike/modules/jsf/impl/src/test/resources/injection/testValidatorConverter.xhtml b/deltaspike/modules/jsf/impl/src/test/resources/injection/testValidatorConverter.xhtml
index 1bb2fc6..7232499 100644
--- a/deltaspike/modules/jsf/impl/src/test/resources/injection/testValidatorConverter.xhtml
+++ b/deltaspike/modules/jsf/impl/src/test/resources/injection/testValidatorConverter.xhtml
@@ -30,12 +30,12 @@
<h:form id="converter">
Converterd Value :
<h:inputText id="convertedValue" value="#{myBean.convertedValue}">
- <f:converter converterId="myValueConveter" />
+ <f:converter converterId="myValueConverter" />
</h:inputText>
<h:message id="errorMessage" for="convertedValue" />
<br />
<h:commandButton id="testConverterButton"
- action="#{myBean.testAction()}" value="Test Conveter" />
+ action="#{myBean.testAction()}" value="Test Converter" />
</h:form>
<h:form id="validator">
Value String:
diff --git a/deltaspike/modules/jsf/impl/src/test/resources/injection/testValidatorConverterTag.xhtml b/deltaspike/modules/jsf/impl/src/test/resources/injection/testValidatorConverterTag.xhtml
index 3ec5ce2..023e166 100644
--- a/deltaspike/modules/jsf/impl/src/test/resources/injection/testValidatorConverterTag.xhtml
+++ b/deltaspike/modules/jsf/impl/src/test/resources/injection/testValidatorConverterTag.xhtml
@@ -31,12 +31,12 @@
<h:form id="converter">
Converterd Value :
<h:inputText id="convertedValue" value="#{myBean.convertedValue}">
- <d:myValueConveter />
+ <d:myValueConverter />
</h:inputText>
<h:message id="errorMessage" for="convertedValue" />
<br />
- <h:commandButton id="testConveterButton"
- action="#{myBean.testAction()}" value="Test Conveter" />
+ <h:commandButton id="testConverterButton"
+ action="#{myBean.testAction()}" value="Test Converter" />
</h:form>
<h:form id="validator">
Value String: