Examples of receivedLogLine()


Examples of com.force.sdk.qa.util.logging.MockAppender.receivedLogLine()

        } finally {
            logger.setLevel(oldLevel);
            logger.removeAppender(mockAppender);
        }
       
        assertTrue(mockAppender.receivedLogLine(), "Did not receive expected log line: " + expectedLogLine);
    }
   
    // NOTE: This is not going to pass in STS.  You have to execute from the command line.
    @Test
    public void testLogConnectorLoadFromEnvVar() throws ConnectionException {
View Full Code Here

Examples of com.force.sdk.qa.util.logging.MockAppender.receivedLogLine()

        } finally {
            logger.setLevel(oldLevel);
            logger.removeAppender(mockAppender);
        }
       
        assertTrue(mockAppender.receivedLogLine(), "Did not receive expected log line: " + expectedLogLine);
    }
   
    @Test
    public void testLogConnectorLoadFromJavaProp() throws ConnectionException {
        Logger logger = Logger.getLogger("com.force.sdk.connector");
View Full Code Here

Examples of com.force.sdk.qa.util.logging.MockAppender.receivedLogLine()

            System.clearProperty("force.testLogConnectorLoadFromJavaProp.url");
            logger.setLevel(oldLevel);
            logger.removeAppender(mockAppender);
        }
       
        assertTrue(mockAppender.receivedLogLine(), "Did not receive expected log line: " + expectedLogLine);
    }
   
    @Test
    public void testLogConnectorLoadFromClasspathPropFile() throws ConnectionException {
        Logger logger = Logger.getLogger("com.force.sdk.connector");
View Full Code Here

Examples of com.force.sdk.qa.util.logging.MockAppender.receivedLogLine()

        } finally {
            logger.setLevel(oldLevel);
            logger.removeAppender(mockAppender);
        }
       
        assertTrue(mockAppender.receivedLogLine(), "Did not receive expected log line: " + expectedLogLine);
    }
   
    @Test
    public void testLogConnectorLoadFromCliforcePropFile() throws ConnectionException, IOException {
        Logger logger = Logger.getLogger("com.force.sdk.connector");
View Full Code Here

Examples of com.force.sdk.qa.util.logging.MockAppender.receivedLogLine()

        } finally {
            logger.setLevel(oldLevel);
            logger.removeAppender(mockAppender);
        }
       
        assertTrue(mockAppender.receivedLogLine(), "Did not receive expected log line: " + expectedLogLine);
    }
   
    @Test
    public void testLogConnectorCacheCheck() throws ConnectionException {
        Logger logger = Logger.getLogger("com.force.sdk.connector");
View Full Code Here

Examples of com.force.sdk.qa.util.logging.MockAppender.receivedLogLine()

            logger.removeAppender(mockCheckAppender);
        }
       
        assertTrue(mockCheckAppender.receivedLogLine(), "Did not receive expected log line: " + expectedCheckLogLine);
        assertTrue(mockMissAppender.receivedLogLine(), "Did not receive expected log line: " + expectedMissLogLine);
        assertTrue(mockHitAppender.receivedLogLine(), "Did not receive expected log line: " + expectedHitLogLine);
    }
   
    // Test that cache is NOT hit when skipCache flag is set OR username is null.
    @Test
    public void testConnectorSkipCache() throws ConnectionException, AsyncApiException {
View Full Code Here

Examples of com.force.sdk.qa.util.logging.MockAppender.receivedLogLine()

            logger.removeAppender(mockCheckAppender);
        }
       
        Assert.assertFalse(mockCheckAppender.receivedLogLine(), "The cache should not be checked when skipCache is set.");
        Assert.assertFalse(mockMissAppender.receivedLogLine(), "The cache should not be checked when skipCache is set.");
        Assert.assertFalse(mockHitAppender.receivedLogLine(), "The cache should not be checked when skipCache is set.");
    }
   
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.