Code example for MethodNotSupportedException

0
    @Override 
    public abstract void run(); 
 
    @Override 
    public boolean cancel(boolean mayInterruptIfRunning) {
        throw new RuntimeException(new MethodNotSupportedException("not supported - dont need for testing!"));
    } 
 
    @Override 
    public boolean isCancelled() { 
        throw new RuntimeException(new MethodNotSupportedException("not supported - dont need for testing!"));
    } 
 
    @Override 
    public boolean isDone() { 
        return null != mResult;
    } 
 
    /** 
     * Will call start() and therefore internally call {@link #run()} 
Stop searching for code, let great code find you!  Add Codota to your java IDE