mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
Switch tests (back) to use mock authentication
This commit is contained in:
@ -144,7 +144,6 @@ public class SampleMetaDataProvider extends AbstractQQQApplication
|
||||
{
|
||||
QInstance qInstance = new QInstance();
|
||||
|
||||
// qInstance.setAuthentication(defineAuthentication());
|
||||
qInstance.addBackend(defineRdbmsBackend());
|
||||
qInstance.addBackend(defineMemoryBackend());
|
||||
qInstance.addBackend(defineFilesystemBackend());
|
||||
@ -175,6 +174,18 @@ public class SampleMetaDataProvider extends AbstractQQQApplication
|
||||
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
** for tests, define the same instance as above, but use mock authentication.
|
||||
***************************************************************************/
|
||||
public static QInstance defineTestInstance() throws QException
|
||||
{
|
||||
QInstance qInstance = defineInstance();
|
||||
qInstance.setAuthentication(defineAuthentication());
|
||||
return qInstance;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
**
|
||||
***************************************************************************/
|
||||
|
Reference in New Issue
Block a user