Skip to content

Commit 8b25820

Browse files
Jitesh-Raghavvlsi
authored andcommitted
Fixed Typo in error message #6335 Issue
1 parent 3e9af5d commit 8b25820

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

bin/testfiles/JDBC_TESTS.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ JDBC_SELECT_LIMIT_RESULTSET_1,200,OK,TG-OK 1-1,text,true,1,1,1,0
2323
JDBC_SELECT_LIMIT_RESULTSET_2,200,OK,TG-OK 1-1,text,true,1,1,1,0
2424
JDBC_SELECT_LIMIT_RESULTSET_3,200,OK,TG-OK 1-1,text,true,1,1,1,0
2525
JDBC_SELECT_LIMIT_RESULTSET_4,200,OK,TG-OK 1-1,text,true,1,1,1,0
26-
JDBC_NoConfig,000,java.lang.IllegalArgumentException: Name for DataSoure must not be empty in JDBC_NoConfig,TG-Errors 2-1,text,true,1,1,1,0
26+
JDBC_NoConfig,000,java.lang.IllegalArgumentException: Name for DataSource must not be empty in JDBC_NoConfig,TG-Errors 2-1,text,true,1,1,1,0
2727
JDBC_Wrong_Sql,42581 -5581,java.sql.SQLSyntaxErrorException: unexpected token: WHERE,TG-Errors 2-1,text,true,1,1,1,0
2828
JDBC_With_Failing_PreProcessor,200,OK,TG-Errors 2-1,text,true,1,1,1,0
2929
JDBC_With_Failing_PostProcessor,200,OK,TG-Errors 2-1,text,true,1,1,1,0

bin/testfiles/JDBC_TESTS.jmx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def user = 'SA'
6767
def password = ''
6868
def driver = 'org.hsqldb.jdbcDriver'
6969
def sql = Sql.newInstance(url, user, password, driver)
70-
def row = sql.firstRow('select count(*) from INFORMATION_SCHEMA.system_sessions')
70+
def row = sql.firstRow('select count(*) from INFORMATION_SCHEMA.system_sessions')
7171
def sessionNum = row[0]
7272

7373
try {
@@ -164,7 +164,7 @@ sql.close()
164164
title VARCHAR(50) NOT NULL,
165165
author VARCHAR(20) NOT NULL,
166166
submission_date DATE,
167-
PRIMARY KEY (id)
167+
PRIMARY KEY (id)
168168
);
169169

170170
</stringProp>
@@ -196,7 +196,7 @@ sql.close()
196196
BEGIN ATOMIC
197197
DECLARE result CURSOR FOR SELECT * FROM USERS WHERE ID = IDENTITY();
198198
INSERT INTO USERS VALUES (DEFAULT, title, author, CURRENT_DATE);
199-
OPEN result;
199+
OPEN result;
200200
END ;</stringProp>
201201
<stringProp name="queryArguments"></stringProp>
202202
<stringProp name="queryArgumentsTypes"></stringProp>
@@ -225,7 +225,7 @@ sql.close()
225225
MODIFIES SQL DATA DYNAMIC RESULT SETS 1
226226
BEGIN ATOMIC
227227
DECLARE result CURSOR FOR SELECT * FROM USERS order by id FOR READ ONLY;
228-
OPEN result;
228+
OPEN result;
229229
END ;</stringProp>
230230
<stringProp name="queryArguments"></stringProp>
231231
<stringProp name="queryArgumentsTypes"></stringProp>
@@ -1284,7 +1284,7 @@ if (list.size()==3) {
12841284
<hashTree>
12851285
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
12861286
<collectionProp name="Asserion.test_strings">
1287-
<stringProp name="-1643270117">Name for DataSoure must not be empty in JDBC_NoConfig</stringProp>
1287+
<stringProp name="-1643270117">Name for DataSource must not be empty in JDBC_NoConfig</stringProp>
12881288
</collectionProp>
12891289
<stringProp name="Assertion.test_field">Assertion.response_message</stringProp>
12901290
<boolProp name="Assertion.assume_success">true</boolProp>

bin/testfiles/JDBC_TESTS.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@
340340
<error>false</error>
341341
</assertionResult>
342342
</sample>
343-
<sample s="true" lb="JDBC_NoConfig" rc="000" rm="java.lang.IllegalArgumentException: Name for DataSoure must not be empty in JDBC_NoConfig" tn="TG-Errors 2-1" dt="text" sc="1" ec="0" ng="1" na="1">
343+
<sample s="true" lb="JDBC_NoConfig" rc="000" rm="java.lang.IllegalArgumentException: Name for DataSource must not be empty in JDBC_NoConfig" tn="TG-Errors 2-1" dt="text" sc="1" ec="0" ng="1" na="1">
344344
<assertionResult>
345345
<name>Response Assertion</name>
346346
<failure>false</failure>

src/protocol/jdbc/src/main/java/org/apache/jmeter/protocol/jdbc/config/DataSourceElement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public void testStarted() {
116116
JMeterVariables variables = getThreadContext().getVariables();
117117
String poolName = getDataSource();
118118
if (JOrphanUtils.isBlank(poolName)) {
119-
throw new IllegalArgumentException("Name for DataSoure must not be empty in " + getName());
119+
throw new IllegalArgumentException("Name for DataSource must not be empty in " + getName());
120120
} else if (variables.getObject(poolName) != null) {
121121
log.error("JDBC data source already defined for: {}", poolName);
122122
} else {

src/protocol/jdbc/src/main/java/org/apache/jmeter/protocol/jdbc/processor/AbstractJDBCProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public abstract class AbstractJDBCProcessor extends AbstractJDBCTestElement {
4141
*/
4242
protected void process() {
4343
if (JOrphanUtils.isBlank(getDataSource())) {
44-
throw new IllegalArgumentException("Name for DataSoure must not be empty in " + getName());
44+
throw new IllegalArgumentException("Name for DataSource must not be empty in " + getName());
4545
}
4646
try (Connection conn = DataSourceElement.getConnection(getDataSource())){
4747
execute(conn);

src/protocol/jdbc/src/main/java/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public SampleResult sample(Entry e) {
7474
try {
7575
String dataSource = getDataSource();
7676
if (JOrphanUtils.isBlank(dataSource)) {
77-
throw new IllegalArgumentException("Name for DataSoure must not be empty in " + getName());
77+
throw new IllegalArgumentException("Name for DataSource must not be empty in " + getName());
7878
}
7979

8080
try {

0 commit comments

Comments
 (0)