@Test(expected = RuntimeException.class) public void failingOfferTest() { ScrapQueue sq = new ScrapQueue(); sq.offer(null); }
@Override public boolean offer(Object e) { throw new RuntimeException("Method offer is not available from this context"); }
ScrapQueue implements Queue<Object>, ScrapConsumer<K,Object> { @Override public boolean offer(Object e) { throw new RuntimeException("Method offer is not available from this context"); } }
ScrapQueue implements Queue<Object>, ScrapConsumer<K,Object> { @Override public boolean offer(Object e) { throw new RuntimeException("Method offer is not available from this context"); } ScrapQueue();  ScrapQueue( Supplier<Queue<Object>> supplier );  ScrapQueue( Queue<Object> queue ); }
ScrapQueue implements Queue<Object>, ScrapConsumer<K,Object> { @Override public boolean offer(Object e) { throw new RuntimeException("Method offer is not available from this context"); } ScrapQueue();  ScrapQueue( Supplier<Queue<Object>> supplier );  ScrapQueue( Queue<Object> queue ); @Override int size(); @Override boolean isEmpty(); @Override boolean contains(Object o); @Override Iterator<Object> iterator(); @Override Object[] toArray(); @Override T[] toArray(T[] a); @Override boolean remove(Object o); @Override boolean containsAll(Collection<?> c); @Override boolean addAll(Collection<?> c); @Override boolean removeAll(Collection<?> c); @Override boolean retainAll(Collection<?> c); @Override void clear(); @Override boolean add(Object e); @Override boolean offer(Object e); @Override Object remove(); @Override Object poll(); @Override Object element(); @Override Object peek(); @Override void accept(ScrapBin<K, Object> scrapBin); Queue<Object> getInnerQueue(); static ScrapQueue<K> of(Conveyor<K, ?, ?> conv); static ScrapQueue<K> of(Conveyor<K, ?, ?> conv, Queue<Object> q); static ScrapQueue<K> of(Conveyor<K, ?, ?> conv, Supplier<Queue<Object>> qs); @Override String toString(); }
ScrapQueue implements Queue<Object>, ScrapConsumer<K,Object> { @Override public boolean offer(Object e) { throw new RuntimeException("Method offer is not available from this context"); } ScrapQueue();  ScrapQueue( Supplier<Queue<Object>> supplier );  ScrapQueue( Queue<Object> queue ); @Override int size(); @Override boolean isEmpty(); @Override boolean contains(Object o); @Override Iterator<Object> iterator(); @Override Object[] toArray(); @Override T[] toArray(T[] a); @Override boolean remove(Object o); @Override boolean containsAll(Collection<?> c); @Override boolean addAll(Collection<?> c); @Override boolean removeAll(Collection<?> c); @Override boolean retainAll(Collection<?> c); @Override void clear(); @Override boolean add(Object e); @Override boolean offer(Object e); @Override Object remove(); @Override Object poll(); @Override Object element(); @Override Object peek(); @Override void accept(ScrapBin<K, Object> scrapBin); Queue<Object> getInnerQueue(); static ScrapQueue<K> of(Conveyor<K, ?, ?> conv); static ScrapQueue<K> of(Conveyor<K, ?, ?> conv, Queue<Object> q); static ScrapQueue<K> of(Conveyor<K, ?, ?> conv, Supplier<Queue<Object>> qs); @Override String toString();  }