From 0de24cc1096a04e4865ee117e3477aa0e8eb1311 Mon Sep 17 00:00:00 2001 From: Zhichun Wu Date: Fri, 24 Feb 2023 06:49:56 +0800 Subject: [PATCH] fix typos --- .../test/java/org/prqllang/jdbc/PrqlDriverTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/prql-java/prql-jdbc/src/test/java/org/prqllang/jdbc/PrqlDriverTest.java b/prql-java/prql-jdbc/src/test/java/org/prqllang/jdbc/PrqlDriverTest.java index 9a4b29274358..d01f846d75a4 100644 --- a/prql-java/prql-jdbc/src/test/java/org/prqllang/jdbc/PrqlDriverTest.java +++ b/prql-java/prql-jdbc/src/test/java/org/prqllang/jdbc/PrqlDriverTest.java @@ -39,21 +39,21 @@ public void testNewDriver() throws SQLException { PrqlDriver prqlDriver = (PrqlDriver) DriverManager.getDriver(invalidUrl); int len = prqlDriver.getPropertyInfo(invalidUrl, props).length; - Assert.assertTrue(len > 0, "Shoud have at least one property"); + Assert.assertTrue(len > 0, "Should have at least one property"); Assert.assertThrows(SQLException.class, () -> prqlDriver.connect(invalidUrl, props)); final String correctUrl = invalidUrl.replace("sxqlserver", "sqlserver"); Assert.assertTrue(prqlDriver.getPropertyInfo(correctUrl, props).length == len, - "Should have same amount of properies"); + "Should have same amount of properties"); Assert.assertThrows(SQLException.class, () -> prqlDriver.connect(correctUrl, props)); props.setProperty("prql.custom.classpath", "https://repo1.maven.org/maven2/net/sourceforge/jtds/jtds/1.3.1/jtds-1.3.1.jar"); - Assert.assertTrue(prqlDriver.getPropertyInfo(correctUrl, props).length > len, "Should have more properies"); + Assert.assertTrue(prqlDriver.getPropertyInfo(correctUrl, props).length > len, "Should have more properties"); props.clear(); Assert.assertTrue(prqlDriver.getPropertyInfo(correctUrl, props).length > len, - "Should have more properies due to cached driver"); + "Should have more properties due to cached driver"); Assert.assertThrows(SQLException.class, () -> prqlDriver.connect(correctUrl, props)); } @@ -68,7 +68,7 @@ public void testQuery(String url, String prql, String sql) throws SQLException { while (rs.next()) { count++; } - // we're good, as long as no error occured in read + // we're good, as long as no error occurred in read Assert.assertTrue(count >= 0L); }