RowFacade implements Row { @Override public double getScore() throws RepositoryException { return delegate.getScore(); } @SuppressWarnings("WeakerAccess")  RowFacade(final @NotNull Row delegate, final @NotNull SessionFacade<S> session); @Override Value[] getValues(); @Override Value getValue(String columnName); @Override Node getNode(); @Override Node getNode(String selectorName); @Override String getPath(); @Override String getPath(String selectorName); @Override double getScore(); @Override double getScore(String selectorName);  }
@Test public void testGetScore() throws Exception { Row delegate = mock(Row.class); RowFacade<Session> facade = getFacade(delegate); final double value = 42.0D; when(delegate.getScore()).thenReturn(value); assertEquals("same value", value, facade.getScore(), 1.0D); }
@Test public void testGetScoreSelector() throws Exception { Row delegate = mock(Row.class); RowFacade<Session> facade = getFacade(delegate); final double value = 42.0D; final String arg1 = "arg1"; when(delegate.getScore(arg1)).thenReturn(value); assertEquals("same value", value, facade.getScore(arg1), 1.0D); }