コード例 #1
0
 @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);
 }
コード例 #2
0
  public void initComponent() {
    // Setup the services that the core plugin components need
    PluginServiceProvider.getInstance()
        .initialize(
            new ServerContextStoreImpl(),
            new CredentialsPromptImpl(),
            new TelemetryContextInitializer(),
            true);

    doOsSetup();
  }
コード例 #3
0
 private ServerContextStore getStore() {
   return PluginServiceProvider.getInstance().getServerContextStore();
 }