SketchInteractionListener implements RainbowInputController.RainbowInteractionListener { public static SketchInteractionListener newInstance(StepPerformer inkPerformer) { return new SketchInteractionListener(inkPerformer); } SketchInteractionListener(StepPerformer inkPerformer); static SketchInteractionListener newInstance(StepPerformer inkPerformer); @Override void onSketchTouched(MotionEvent event); @Override void onSketchReleased(MotionEvent event); @Override void onFingerDragged(MotionEvent event); @Override void onMotionEvent(MotionEvent event); void setPaintListener(ZenSketch.PaintListener paintListener);  }
@Test public void testThatNewInstanceReturnsNotNullSketchInteractionListener() { Assertions.assertThat(SketchInteractionListener.newInstance(inkPerformer)).isNotNull(); }
@Test public void testThatNewInstanceReturnsANewInstance() { SketchInteractionListener firstInstance = SketchInteractionListener.newInstance(inkPerformer); SketchInteractionListener secondInstance = SketchInteractionListener.newInstance(inkPerformer); Assertions.assertThat(firstInstance).isNotEqualTo(secondInstance); }