@Before public void setUp() { MockitoAnnotations.initMocks(this); PowerMockito.mockStatic(PluginServiceProvider.class, TfTool.class); when(mockPluginServiceProvider.getPropertyService()).thenReturn(mockPropertyService); when(PluginServiceProvider.getInstance()).thenReturn(mockPluginServiceProvider); form = new ProjectConfigurableForm(mockProject); }
public void initComponent() { // Setup the services that the core plugin components need PluginServiceProvider.getInstance() .initialize( new ServerContextStoreImpl(), new CredentialsPromptImpl(), new TelemetryContextInitializer(), true); doOsSetup(); }
private ServerContextStore getStore() { return PluginServiceProvider.getInstance().getServerContextStore(); }