Skip to content

Commit 1d2ca53

Browse files
committed
Removed tests
1 parent 36d4b2c commit 1d2ca53

File tree

1 file changed

+0
-90
lines changed

1 file changed

+0
-90
lines changed

src/test/java/com/microsoft/sqlserver/jdbc/databasemetadata/DatabaseMetaDataTest.java

Lines changed: 0 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,96 +1197,6 @@ public void testJSONMetaData() throws SQLException {
11971197
}
11981198
}
11991199

1200-
/**
1201-
* Test to print all functions returned by getFunctions()
1202-
*
1203-
* @throws SQLException
1204-
*/
1205-
@Test
1206-
public void testPrintGetFunctionsResults() throws SQLException {
1207-
try (Connection conn = getConnection()) {
1208-
DatabaseMetaData metaData = conn.getMetaData();
1209-
1210-
System.out.println("\n=== getFunctions() Results ===");
1211-
System.out.println(
1212-
"FUNCTION_CAT | FUNCTION_SCHEM | FUNCTION_NAME | NUM_INPUT_PARAMS | NUM_OUTPUT_PARAMS | NUM_RESULT_SETS | REMARKS | FUNCTION_TYPE");
1213-
System.out.println(
1214-
"-------------|----------------|---------------|------------------|-------------------|------------------|---------|---------------");
1215-
1216-
int count = 0;
1217-
try (ResultSet rs = metaData.getFunctions(null, null, null)) {
1218-
while (rs.next()) {
1219-
String functionCat = rs.getString("FUNCTION_CAT");
1220-
String functionSchem = rs.getString("FUNCTION_SCHEM");
1221-
String functionName = rs.getString("FUNCTION_NAME");
1222-
int numInputParams = rs.getInt("NUM_INPUT_PARAMS");
1223-
int numOutputParams = rs.getInt("NUM_OUTPUT_PARAMS");
1224-
int numResultSets = rs.getInt("NUM_RESULT_SETS");
1225-
String remarks = rs.getString("REMARKS");
1226-
int functionType = rs.getInt("FUNCTION_TYPE");
1227-
1228-
System.out.printf("%-12s | %-14s | %-13s | %-16d | %-17d | %-16d | %-7s | %d%n",
1229-
functionCat != null ? functionCat : "NULL",
1230-
functionSchem != null ? functionSchem : "NULL",
1231-
functionName != null ? functionName : "NULL",
1232-
numInputParams,
1233-
numOutputParams,
1234-
numResultSets,
1235-
remarks != null ? remarks : "NULL",
1236-
functionType);
1237-
1238-
count++;
1239-
}
1240-
}
1241-
System.out.println("\nTotal functions found: " + count);
1242-
}
1243-
}
1244-
1245-
/**
1246-
* Test to print all procedures returned by getProcedures()
1247-
*
1248-
* @throws SQLException
1249-
*/
1250-
@Test
1251-
public void testPrintGetProceduresResults() throws SQLException {
1252-
try (Connection conn = getConnection()) {
1253-
DatabaseMetaData metaData = conn.getMetaData();
1254-
1255-
System.out.println("\n=== getProcedures() Results ===");
1256-
System.out.println(
1257-
"PROCEDURE_CAT | PROCEDURE_SCHEM | PROCEDURE_NAME | NUM_INPUT_PARAMS | NUM_OUTPUT_PARAMS | NUM_RESULT_SETS | REMARKS | PROCEDURE_TYPE");
1258-
System.out.println(
1259-
"--------------|-----------------|----------------|------------------|-------------------|------------------|---------|---------------");
1260-
1261-
int count = 0;
1262-
try (ResultSet rs = metaData.getProcedures(null, null, null)) {
1263-
while (rs.next()) {
1264-
String procedureCat = rs.getString("PROCEDURE_CAT");
1265-
String procedureSchem = rs.getString("PROCEDURE_SCHEM");
1266-
String procedureName = rs.getString("PROCEDURE_NAME");
1267-
int numInputParams = rs.getInt("NUM_INPUT_PARAMS");
1268-
int numOutputParams = rs.getInt("NUM_OUTPUT_PARAMS");
1269-
int numResultSets = rs.getInt("NUM_RESULT_SETS");
1270-
String remarks = rs.getString("REMARKS");
1271-
int procedureType = rs.getInt("PROCEDURE_TYPE");
1272-
1273-
System.out.printf("%-13s | %-15s | %-14s | %-16d | %-17d | %-16d | %-7s | %d%n",
1274-
procedureCat != null ? procedureCat : "NULL",
1275-
procedureSchem != null ? procedureSchem : "NULL",
1276-
procedureName != null ? procedureName : "NULL",
1277-
numInputParams,
1278-
numOutputParams,
1279-
numResultSets,
1280-
remarks != null ? remarks : "NULL",
1281-
procedureType);
1282-
1283-
count++;
1284-
}
1285-
}
1286-
System.out.println("\nTotal procedures found: " + count);
1287-
}
1288-
}
1289-
12901200
/**
12911201
* Test to verify getFunctions() metadata structure and FUNCTION_TYPE values
12921202
*

0 commit comments

Comments
 (0)