mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
Fix assessor test that expects empty database
This commit is contained in:
@ -24,8 +24,8 @@ package com.kingsrook.qqq.backend.module.rdbms.model.metadata;
|
||||
|
||||
import com.kingsrook.qqq.backend.core.context.QContext;
|
||||
import com.kingsrook.qqq.backend.core.instances.assessment.QInstanceAssessor;
|
||||
import com.kingsrook.qqq.backend.module.rdbms.BaseTest;
|
||||
import com.kingsrook.qqq.backend.module.rdbms.TestUtils;
|
||||
import com.kingsrook.qqq.backend.module.rdbms.actions.RDBMSActionTest;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertNotEquals;
|
||||
@ -34,7 +34,7 @@ import static org.junit.jupiter.api.Assertions.assertNotEquals;
|
||||
/*******************************************************************************
|
||||
** Unit test for RDBMSBackendAssessor
|
||||
*******************************************************************************/
|
||||
class RDBMSBackendAssessorTest extends RDBMSActionTest
|
||||
class RDBMSBackendAssessorTest extends BaseTest
|
||||
{
|
||||
|
||||
/*******************************************************************************
|
||||
@ -53,16 +53,17 @@ class RDBMSBackendAssessorTest extends RDBMSActionTest
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
*******************************************************************************/
|
||||
@Test
|
||||
void testIssues() throws Exception
|
||||
{
|
||||
//////////////////////////////
|
||||
// don't prime the database //
|
||||
//////////////////////////////
|
||||
// TestUtils.primeTestDatabase("prime-test-database.sql");
|
||||
///////////////////////////
|
||||
// un-prime the database //
|
||||
///////////////////////////
|
||||
TestUtils.primeTestDatabase("drop-test-database.sql");
|
||||
QInstanceAssessor assessor = new QInstanceAssessor(QContext.getQInstance());
|
||||
assessor.assess();
|
||||
assessor.printSummary();
|
||||
|
@ -0,0 +1,32 @@
|
||||
--
|
||||
-- QQQ - Low-code Application Framework for Engineers.
|
||||
-- Copyright (C) 2021-2022. Kingsrook, LLC
|
||||
-- 651 N Broad St Ste 205 # 6917 | Middletown DE 19709 | United States
|
||||
-- contact@kingsrook.com
|
||||
-- https://github.com/Kingsrook/
|
||||
--
|
||||
-- This program is free software: you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU Affero General Public License as
|
||||
-- published by the Free Software Foundation, either version 3 of the
|
||||
-- License, or (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU Affero General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU Affero General Public License
|
||||
-- along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS person;
|
||||
DROP TABLE IF EXISTS personal_id_card;
|
||||
DROP TABLE IF EXISTS carrier;
|
||||
DROP TABLE IF EXISTS line_item_extrinsic;
|
||||
DROP TABLE IF EXISTS order_line;
|
||||
DROP TABLE IF EXISTS item;
|
||||
DROP TABLE IF EXISTS `order`;
|
||||
DROP TABLE IF EXISTS order_instructions;
|
||||
DROP TABLE IF EXISTS warehouse_store_int;
|
||||
DROP TABLE IF EXISTS store;
|
||||
DROP TABLE IF EXISTS warehouse;
|
Reference in New Issue
Block a user