Code example for ComparisonFailure

0
    @Override 
    protected void tearDown() throws Exception { 
        super.tearDown(); 
    } 
 
    private static void assertStartsWith(String message, String prefix, String actual) {
        if (!actual.startsWith(prefix)) {
            throw new ComparisonFailure(message, prefix, actual);
        } 
    } 
 
    private static class ObbObserver extends OnObbStateChangeListener {
        private String path;
 
        public int state = -1;
        boolean done = false;
 
        @Override 
        public void onObbStateChange(String path, int state) {
            Log.d(TAG, "Received message.  path=" + path + ", state=" + state);
Stop searching for code, let great code find you!  Add Codota to your java IDE