@@ -59,6 +59,7 @@ void diffTest(String testName) throws IOException, InterruptedException {
5959 String actual = PgCodeKeeperApi .diff (provider , oldDbLoader , newDbLoader , diffSettings );
6060
6161 TestUtils .assertIgnoreNewLines (expectedDiff , actual );
62+ TestUtils .assertErrors (diffSettings .getErrors ());
6263 }
6364
6465
@@ -78,6 +79,7 @@ void loaderTest(String testName, boolean parallelLoad) throws IOException, Inter
7879 String actual = PgCodeKeeperApi .diff (provider , oldDbLoader , newDbLoader , diffSetts );
7980
8081 TestUtils .assertIgnoreNewLines (expectedDiff , actual );
82+ TestUtils .assertErrors (diffSettings .getErrors ());
8183 }
8284
8385 @ ParameterizedTest
@@ -94,6 +96,7 @@ void diffWithIgnoreListTest(String testName) throws IOException, InterruptedExce
9496 String actual = PgCodeKeeperApi .diff (provider , oldDbLoader , newDbLoader , diffSettings );
9597
9698 TestUtils .assertIgnoreNewLines (expectedDiff , actual );
99+ TestUtils .assertErrors (diffSettings .getErrors ());
97100 }
98101
99102 @ Test
@@ -106,6 +109,7 @@ void exportTest(@TempDir Path tempDir) throws IOException, InterruptedException
106109 PgCodeKeeperApi .exportToProject (provider , null , loader , tempDir , diffSettings );
107110
108111 assertFileContent (exportedTableFile , expectedContent );
112+ TestUtils .assertErrors (diffSettings .getErrors ());
109113 }
110114
111115 @ Test
@@ -121,6 +125,7 @@ void exportWithIgnoreListTest(@TempDir Path tempDir) throws IOException, Interru
121125
122126 assertFileContent (exportedTableFile , expectedContent );
123127 assertFalse (Files .exists (ignoredTableFile ));
128+ TestUtils .assertErrors (diffSettings .getErrors ());
124129 }
125130
126131 @ Test
@@ -140,6 +145,7 @@ void updateProjectTest(@TempDir Path tempDir) throws IOException, InterruptedExc
140145 // Verify first table was removed and second table was updated
141146 assertFalse (Files .exists (firstTableFile ));
142147 assertFileContent (secondTableFile , expectedContent );
148+ TestUtils .assertErrors (diffSettings .getErrors ());
143149 }
144150
145151 @ Test
@@ -163,6 +169,7 @@ void updateProjectWithIgnoreListTest(@TempDir Path tempDir) throws IOException,
163169 // Verify both tables exist and have correct content
164170 assertFileContent (firstTableFile , expectedFirstTableContent );
165171 assertFileContent (secondTableFile , expectedSecondTableContent );
172+ TestUtils .assertErrors (diffSettings .getErrors ());
166173 }
167174
168175 private void setupUpdateProjectStructure (Path tempDir ) throws IOException {
0 commit comments