Mercurial > hg > monetdb-java
comparison tests/OnClientTester.java @ 556:87feb93330a6 onclient
Misc. changes suggested by analysis tool
author | Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com> |
---|---|
date | Thu, 16 Sep 2021 11:14:55 +0200 (2021-09-16) |
parents | 5ce6a942aff3 |
children | ce2b616ed22e |
comparison
equal
deleted
inserted
replaced
555:90c346571eb4 | 556:87feb93330a6 |
---|---|
51 | 51 |
52 if (failures > 0) | 52 if (failures > 0) |
53 System.exit(1); | 53 System.exit(1); |
54 } | 54 } |
55 | 55 |
56 protected void prepare() throws SQLException { | 56 void prepare() throws SQLException { |
57 execute("DROP TABLE IF EXISTS foo"); | 57 execute("DROP TABLE IF EXISTS foo"); |
58 execute("CREATE TABLE foo (i INT, t TEXT)"); | 58 execute("CREATE TABLE foo (i INT, t TEXT)"); |
59 } | 59 } |
60 | 60 |
61 public void test_Upload() throws Exception { | 61 public void test_Upload() throws Exception { |
359 | 359 |
360 public int countAttempts() { | 360 public int countAttempts() { |
361 return attempts; | 361 return attempts; |
362 } | 362 } |
363 | 363 |
364 public int countBytes() { | |
365 return bytesSeen; | |
366 } | |
367 | |
368 public int lineCount() { | 364 public int lineCount() { |
369 int lines = lineEndingsSeen; | 365 int lines = lineEndingsSeen; |
370 if (startOfLine != bytesSeen) | 366 if (startOfLine != bytesSeen) |
371 lines++; | 367 lines++; |
372 return lines; | 368 return lines; |