mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
Remove withBackendType(String), to encourage usage instead of with/set method that takes the module class, so the module will be init'ed and registered
This commit is contained in:
@ -155,18 +155,6 @@ public class QBackendMetaData implements TopLevelMetaDataInterface
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Fluent setter, returning generically, to help sub-class fluent flows
|
||||
*******************************************************************************/
|
||||
@SuppressWarnings("unchecked")
|
||||
public <T extends QBackendMetaData> T withBackendType(String backendType)
|
||||
{
|
||||
this.backendType = backendType;
|
||||
return (T) this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
*******************************************************************************/
|
||||
|
@ -89,7 +89,7 @@ class EnumerationCountActionTest extends BaseTest
|
||||
QInstance instance = QContext.getQInstance();
|
||||
instance.addBackend(new QBackendMetaData()
|
||||
.withName("enum")
|
||||
.withBackendType("enum")
|
||||
.withBackendType(EnumerationBackendModule.class)
|
||||
);
|
||||
|
||||
instance.addTable(new QTableMetaData()
|
||||
|
@ -167,7 +167,7 @@ class EnumerationQueryActionTest extends BaseTest
|
||||
QInstance instance = QContext.getQInstance();
|
||||
instance.addBackend(new QBackendMetaData()
|
||||
.withName("enum")
|
||||
.withBackendType("enum")
|
||||
.withBackendType(EnumerationBackendModule.class)
|
||||
);
|
||||
|
||||
instance.addTable(new QTableMetaData()
|
||||
|
Reference in New Issue
Block a user