Package com.p6spy.engine.test

Examples of com.p6spy.engine.test.P6TestFramework


  private List<Resource> jndiResources;

  @Before
  public void setUp() throws Exception {
    // make sure to reinit properly
    new P6TestFramework("ds") {
    };


    jndiResources = new ArrayList<Resource>();
View Full Code Here


  private static JmxClient jmxClient = null;
     
  @BeforeClass
  public static void connectToJMX() throws JMException, SQLException, IOException, InterruptedException {
    // make sure to reinit properly
    new P6TestFramework("mbean") {};

    final String jmxPortProperty = System.getProperty(COM_SUN_MANAGEMENT_JMXREMOTE_PORT);
    final int jmxPort = P6Util.parseInt(jmxPortProperty, JMXREMOTE_PORT_DEFAULT);
    jmxClient = new JmxClient(jmxPort);
  }
View Full Code Here


  @Before
  public void setup() throws Exception {
    // make sure to reinit properly
    new P6TestFramework("ds") {
    };

    user = "sa";
    password ="sa";
    // please note non-typical DB name
View Full Code Here

  public void setup() throws Exception {
    // reset log4j
    LogManager.resetConfiguration();

    // initialize framework
    framework = new P6TestFramework("log4j") {
    };
    framework.setUpFramework();
  }
View Full Code Here

  public static void setUpAll() throws SQLException, IOException {
    // cleanup all
    LOG_FILE.delete();
   
    // make sure to reinit properly
    new P6TestFramework("blank") {
    };
  }
View Full Code Here

  private JmxClient jmxClient = null;

  @Before
  public void setUp() throws JMException, SQLException, IOException, InterruptedException {
    // make sure to reinit properly
    new P6TestFramework("reload") {
    };

    String jmxPortProperty = System.getProperty(P6TestMBean.COM_SUN_MANAGEMENT_JMXREMOTE_PORT);
    int jmxPort = P6Util.parseInt(jmxPortProperty, P6TestMBean.JMXREMOTE_PORT_DEFAULT);
    jmxClient = new JmxClient(jmxPort);
View Full Code Here

  @Before
  public void setUp() throws JMException, SQLException, IOException,
      InterruptedException {
    // make sure to reinit properly
    new P6TestFramework("blank") {
    };
  }
View Full Code Here

  }

  @Test
  public void testSpyDotPropetiesNoKeyValueDoesntModifySetOption()
      throws SQLException, IOException {
    new P6TestFramework("blank") {
    };

    Assert.assertTrue(P6LogOptions
        .getActiveInstance()
        .getExcludeCategoriesSet()
View Full Code Here

  }

  @Test
  public void testSpyDotPropetiesEmptyStringValueClearsSetOption()
      throws SQLException, IOException {
    new P6TestFramework("override_clear") {
    };

    Assert.assertNull(P6LogOptions.getActiveInstance()
        .getExcludeCategoriesSet());
  }
View Full Code Here

  }

  @Test
  public void testSysPropertyNoKeyValueDoesntModifySetOption()
      throws SQLException, IOException {
    new P6TestFramework("blank") {
    };

    Assert.assertTrue(P6LogOptions
        .getActiveInstance()
        .getExcludeCategoriesSet()
View Full Code Here

TOP

Related Classes of com.p6spy.engine.test.P6TestFramework

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.