Package org.apache.derby.iapi.services.diag

Examples of org.apache.derby.iapi.services.diag.Diagnosticable


        Object obj = new Long(5);

        // Test just getting a single string back, from each type of object.
        String          str          = null;
        String          expected_str = null;
        Diagnosticable  helper_class = null;

        // Here the string should come from the Diagnostic object's diag().
        str          = DiagnosticUtil.toDiagString(diag_obj);
        expected_str = "D_T_DiagTestClass1: object with diag interface";

        if (str.compareTo(expected_str) != 0)
        {
      throw T_Fail.testFailMsg(
                "DiagnosticUtil.toDiagString() failed, got: (" + str +
                "), expected: (" + expected_str + ").");
        }


        // make sure right class was found.
     
        helper_class = DiagnosticUtil.findDiagnostic(diag_obj);
       
        if (!(helper_class instanceof D_T_DiagTestClass1))
            throw T_Fail.testFailMsg("Bad helper class lookup.");

        // make sure helper class gives right string.
       
        try
        {
            str = helper_class.diag();
        }
        catch (Throwable t)
        {
      throw T_Fail.testFailMsg(
                "Unexpected exception from helper_class.diag() call");
View Full Code Here


                    conglomid, false, 0, TransactionController.MODE_TABLE,
                    TransactionController.ISOLATION_SERIALIZABLE);

            open_table.debugConglomerate();

            Diagnosticable diag_obj = DiagnosticUtil.findDiagnostic(open_table);

            ret_string = diag_obj.diag();

            open_table.close();
        }
        else
        {
View Full Code Here

                    conglomid, false, 0, TransactionController.MODE_TABLE,
                    TransactionController.ISOLATION_SERIALIZABLE);

            open_table.debugConglomerate();

            Diagnosticable diag_obj = DiagnosticUtil.findDiagnostic(open_table);

            ret_string = diag_obj.diag();

            open_table.close();
        }
        else
        {
View Full Code Here

                    conglomid, false, 0, TransactionController.MODE_TABLE,
                    TransactionController.ISOLATION_SERIALIZABLE);

            open_table.debugConglomerate();

            Diagnosticable diag_obj = DiagnosticUtil.findDiagnostic(open_table);

            ret_string = diag_obj.diag();

            open_table.close();
        }
        else
        {
View Full Code Here

        Object obj = new Long(5);

        // Test just getting a single string back, from each type of object.
        String          str          = null;
        String          expected_str = null;
        Diagnosticable  helper_class = null;

        // Here the string should come from the Diagnostic object's diag().
        str          = DiagnosticUtil.toDiagString(diag_obj);
        expected_str = "D_T_DiagTestClass1: object with diag interface";

        if (str.compareTo(expected_str) != 0)
        {
      throw T_Fail.testFailMsg(
                "DiagnosticUtil.toDiagString() failed, got: (" + str +
                "), expected: (" + expected_str + ").");
        }


        // make sure right class was found.
     
        helper_class = DiagnosticUtil.findDiagnostic(diag_obj);
       
        if (!(helper_class instanceof D_T_DiagTestClass1))
            throw T_Fail.testFailMsg("Bad helper class lookup.");

        // make sure helper class gives right string.
       
        try
        {
            str = helper_class.diag();
        }
        catch (Throwable t)
        {
      throw T_Fail.testFailMsg(
                "Unexpected exception from helper_class.diag() call");
View Full Code Here

        Object obj = new Long(5);

        // Test just getting a single string back, from each type of object.
        String          str          = null;
        String          expected_str = null;
        Diagnosticable  helper_class = null;

        // Here the string should come from the Diagnostic object's diag().
        str          = DiagnosticUtil.toDiagString(diag_obj);
        expected_str = "D_T_DiagTestClass1: object with diag interface";

        if (str.compareTo(expected_str) != 0)
        {
      throw T_Fail.testFailMsg(
                "DiagnosticUtil.toDiagString() failed, got: (" + str +
                "), expected: (" + expected_str + ").");
        }


        // make sure right class was found.
     
        helper_class = DiagnosticUtil.findDiagnostic(diag_obj);
       
        if (!(helper_class instanceof D_T_DiagTestClass1))
            throw T_Fail.testFailMsg("Bad helper class lookup.");

        // make sure helper class gives right string.
       
        try
        {
            str = helper_class.diag();
        }
        catch (Throwable t)
        {
      throw T_Fail.testFailMsg(
                "Unexpected exception from helper_class.diag() call");
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.services.diag.Diagnosticable

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.