mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-19 05:30:43 +00:00
Test fixes
This commit is contained in:
@ -563,7 +563,7 @@ class QJavalinImplementationTest extends QJavalinTestBase
|
|||||||
.withQueryWithoutLimitDefault(3)
|
.withQueryWithoutLimitDefault(3)
|
||||||
.withQueryWithoutLimitLogLevel(Level.WARN);
|
.withQueryWithoutLimitLogLevel(Level.WARN);
|
||||||
|
|
||||||
QCollectingLogger collectingLogger = QLogger.activateCollectingLoggerForClass(QJavalinImplementation.class);
|
QCollectingLogger collectingLogger = QLogger.activateCollectingLoggerForClass(QJavalinUtils.class);
|
||||||
|
|
||||||
String filterJson = """
|
String filterJson = """
|
||||||
{"criteria":[]}""";
|
{"criteria":[]}""";
|
||||||
@ -583,7 +583,7 @@ class QJavalinImplementationTest extends QJavalinTestBase
|
|||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
QLogger.activateCollectingLoggerForClass(QJavalinImplementation.class);
|
QLogger.activateCollectingLoggerForClass(QJavalinUtils.class);
|
||||||
resetMetaDataQueryWithoutLimitSettings();
|
resetMetaDataQueryWithoutLimitSettings();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -32,6 +32,7 @@ import com.kingsrook.qqq.backend.core.model.metadata.QInstance;
|
|||||||
import com.kingsrook.qqq.backend.core.model.session.QSystemUserSession;
|
import com.kingsrook.qqq.backend.core.model.session.QSystemUserSession;
|
||||||
import com.kingsrook.qqq.backend.core.modules.backend.implementations.memory.MemoryRecordStore;
|
import com.kingsrook.qqq.backend.core.modules.backend.implementations.memory.MemoryRecordStore;
|
||||||
import com.kingsrook.qqq.backend.javalin.TestUtils;
|
import com.kingsrook.qqq.backend.javalin.TestUtils;
|
||||||
|
import com.kingsrook.qqq.middleware.javalin.specs.v1.MiddlewareVersionV1;
|
||||||
import io.javalin.Javalin;
|
import io.javalin.Javalin;
|
||||||
import org.junit.jupiter.api.AfterAll;
|
import org.junit.jupiter.api.AfterAll;
|
||||||
import org.junit.jupiter.api.AfterEach;
|
import org.junit.jupiter.api.AfterEach;
|
||||||
@ -167,7 +168,9 @@ public abstract class SpecTestBase
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
protected AbstractMiddlewareVersion getMiddlewareVersion()
|
protected AbstractMiddlewareVersion getMiddlewareVersion()
|
||||||
{
|
{
|
||||||
return new TestMiddlewareVersion();
|
// todo - when we introduce v2, idk...
|
||||||
|
// there is getVersion method in the specs, i guess we could switch on that...
|
||||||
|
return new MiddlewareVersionV1();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -182,35 +185,6 @@ public abstract class SpecTestBase
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************
|
|
||||||
**
|
|
||||||
***************************************************************************/
|
|
||||||
private static class TestMiddlewareVersion extends AbstractMiddlewareVersion
|
|
||||||
{
|
|
||||||
|
|
||||||
/***************************************************************************
|
|
||||||
**
|
|
||||||
***************************************************************************/
|
|
||||||
@Override
|
|
||||||
public String getVersion()
|
|
||||||
{
|
|
||||||
return "test";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************
|
|
||||||
**
|
|
||||||
***************************************************************************/
|
|
||||||
@Override
|
|
||||||
public List<AbstractEndpointSpec<?, ?, ?>> getEndpointSpecs()
|
|
||||||
{
|
|
||||||
return List.of();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
**
|
**
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
Reference in New Issue
Block a user