assertNotNull(toolWindowManager.getContentManager());
}
public void testAddContentOne() {
ContentManager contentManager = toolWindowManager.getContentManager();
Content content = contentManager.addContent("key", "title", null, new JButton("Hello World!!!"));
assertNotNull(content);
assertEquals(contentManager.getContentCount(), 1);
content = contentManager.getContent(0);
assertEquals(content.getTitle(), "title");
assertEquals(content.getIcon(), null);
assertEquals(content.getToolTipText(), null);
assertTrue(content.getComponent() instanceof JButton);
content = contentManager.getContent("key");
assertEquals(content.getTitle(), "title");
assertEquals(content.getIcon(), null);
assertEquals(content.getToolTipText(), null);
assertTrue(content.getComponent() instanceof JButton);
}