File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
AdvancedCore/src/test/java/com/bencodez/advancedcore/tests Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1111import org .junit .jupiter .api .BeforeEach ;
1212import org .junit .jupiter .api .Test ;
1313
14+ import com .bencodez .advancedcore .AdvancedCoreConfigOptions ;
1415import com .bencodez .advancedcore .AdvancedCorePlugin ;
1516import com .bencodez .advancedcore .api .user .AdvancedCoreUser ;
1617import com .bencodez .advancedcore .api .user .UserData ;
@@ -34,6 +35,9 @@ public void setUp() {
3435 data = mock (UserData .class );
3536 MySQL mysql = mock (MySQL .class );
3637
38+ AdvancedCoreConfigOptions configOptions = mock (AdvancedCoreConfigOptions .class );
39+ when (plugin .getOptions ()).thenReturn (configOptions );
40+ when (configOptions .isOnlineMode ()).thenReturn (true ); // Stub the required method
3741 when (plugin .getMysql ()).thenReturn (mysql );
3842 when (userManager .getDataManager ()).thenReturn (dataManager );
3943 when (plugin .getUserManager ()).thenReturn (userManager );
You can’t perform that action at this time.
0 commit comments