Tabnine Logo
ApplicationNamesInfo.getProductName
Code IndexAdd Tabnine to your IDE (free)

How to use
getProductName
method
in
com.intellij.openapi.application.ApplicationNamesInfo

Best Java code snippets using com.intellij.openapi.application.ApplicationNamesInfo.getProductName (Showing top 8 results out of 315)

origin: halirutan/Mathematica-IntelliJ-Plugin

params.put("Java vm vendor", SystemInfo.JAVA_VENDOR);
params.put("App Name", namesInfo.getProductName());
params.put("App Full Name", namesInfo.getFullProductName());
params.put("App Version name", appInfo.getVersionName());
origin: Microsoft/azure-devops-intellij

@Before
public void localSetup() {
  when(mockApplicationNamesInfo.getProductName()).thenReturn(IDEA_NAME);
  PowerMockito.mockStatic(Platform.class, WindowsStartup.class, MacStartup.class, ApplicationNamesInfo.class, AuthHelper.class);
  when(ApplicationNamesInfo.getInstance()).thenReturn(mockApplicationNamesInfo);
  VSTS_DIR.mkdir();
}
origin: Microsoft/azure-devops-intellij

@Test
public void testIsRider_True() {
  when(mockApplicationNamesInfo.getProductName()).thenReturn(IdeaHelper.RIDER_PRODUCT_NAME);
  assertTrue(IdeaHelper.isRider());
}
origin: Microsoft/azure-devops-intellij

  @Test
  public void testIsRider_False() {
    when(mockApplicationNamesInfo.getProductName()).thenReturn("IDEA");
    assertFalse(IdeaHelper.isRider());
  }
}
origin: Microsoft/azure-devops-intellij

@Test
public void testProjectOpenedEvent_RiderNotVsts() {
  when(applicationNamesInfo.getProductName()).thenReturn(IdeaHelper.RIDER_PRODUCT_NAME);
  PowerMockito.mockStatic(ApplicationNamesInfo.class);
  when(ApplicationNamesInfo.getInstance()).thenReturn(applicationNamesInfo);
  when(VcsHelper.isVstsRepo(project)).thenReturn(false);
  when(statusBar.getWidget(anyString())).thenReturn(new BuildWidget());
  StatusBarManager.setupStatusBar();
  Map<String, Object> map = EventContextHelper.createContext(EventContextHelper.SENDER_PROJECT_OPENED);
  EventContextHelper.setProject(map, project);
  ServerEventManager.getInstance().triggerAllEvents(map);
  verify(statusBar, VerificationModeFactory.times(0)).addWidget(any(BuildWidget.class), Matchers.eq(project));
  verify(statusBar, VerificationModeFactory.times(1)).removeWidget(any(String.class));
}
origin: intellij-dlanguage/intellij-dlanguage

params.put("Java vm vendor", SystemInfo.JAVA_VENDOR);
params.put("App Name", applicationNamesInfo.getProductName());
params.put("App Full Name", applicationNamesInfo.getFullProductName());
params.put("Is EAP", Boolean.toString(appInfo.isEAP()));
origin: Microsoft/azure-devops-intellij

when(GitBranchUtil.getDisplayableBranchText(any(GitRepository.class))).thenReturn("branch");
when(applicationNamesInfo.getProductName()).thenReturn("IDEA");
PowerMockito.mockStatic(ApplicationNamesInfo.class);
when(ApplicationNamesInfo.getInstance()).thenReturn(applicationNamesInfo);
origin: Microsoft/azure-devops-intellij

@Test
public void testProjectOpenedEvent_RiderVsts() {
  when(applicationNamesInfo.getProductName()).thenReturn(IdeaHelper.RIDER_PRODUCT_NAME);
  PowerMockito.mockStatic(ApplicationNamesInfo.class);
  when(ApplicationNamesInfo.getInstance()).thenReturn(applicationNamesInfo);
  when(VcsHelper.isVstsRepo(project)).thenReturn(true);
  StatusBarManager.setupStatusBar();
  Map<String, Object> map = EventContextHelper.createContext(EventContextHelper.SENDER_PROJECT_OPENED);
  EventContextHelper.setProject(map, project);
  ServerEventManager.getInstance().triggerAllEvents(map);
  verify(statusBar, VerificationModeFactory.times(1)).addWidget(any(BuildWidget.class), Matchers.eq(project));
  buildStatusLookupOperation.onLookupStarted();
  buildStatusLookupOperation.onLookupResults(new BuildStatusLookupOperation.BuildStatusResults(
      new ServerContextBuilder().uri("https://test.visualstudio.com/").type(ServerContext.Type.VSO).build(),
      new ArrayList<BuildStatusLookupOperation.BuildStatusRecord>()));
  verify(statusBar, VerificationModeFactory.times(1)).updateWidget(anyString());
}
com.intellij.openapi.applicationApplicationNamesInfogetProductName

Popular methods of ApplicationNamesInfo

  • getFullProductName
  • getInstance

Popular in Java

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • startActivity (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Collectors (java.util.stream)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now