Skip to content

Commit

Permalink
Merge pull request #233 from hastebrot/refactor-improve-encapsulation
Browse files Browse the repository at this point in the history
(refactor) Improve encapsulation of classes.
  • Loading branch information
hastebrot committed Nov 19, 2015
2 parents 7037725 + e7fdd7b commit 719f21a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import org.testfx.service.query.NodeQuery;

@Unstable(reason = "method signatures need fine-tuning")
public class FxAssert {
public final class FxAssert {

//---------------------------------------------------------------------------------------------
// CONSTANTS.
Expand All @@ -48,7 +48,7 @@ public class FxAssert {

// ASSERTIONS: SUPER MATCHER.

@Unstable(reason = "is missing apidocs")
@Unstable(reason = "is missing apidocs; might be removed due to complications with generics")
public static <T> void verifyThat(T value,
Matcher<? super T> matcher) {
verifyThatImpl(emptyReason(), value, matcher);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import org.testfx.api.annotation.Unstable;

@Unstable(reason = "class was recently added")
public class FxService {
public final class FxService {

//---------------------------------------------------------------------------------------------
// STATIC FIELDS.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
* in the JavaFX thread. The primary Stage is constructed by the platform.</p>
*/
@Unstable(reason = "class was recently added")
public class FxToolkit {
public final class FxToolkit {

//---------------------------------------------------------------------------------------------
// STATIC FIELDS.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ private void pushKeyCode(KeyCode keyCode) {
keyboardRobot.release(keyCode);
}

public void pushKeyCodeCombination(KeyCode... keyCodeCombination) {
private void pushKeyCodeCombination(KeyCode... keyCodeCombination) {
List<KeyCode> keyCodesForwards = Lists.newArrayList(keyCodeCombination);
List<KeyCode> keyCodesBackwards = Lists.reverse(keyCodesForwards);
keyboardRobot.pressNoWait(toKeyCodeArray(keyCodesForwards));
keyboardRobot.release(toKeyCodeArray(keyCodesBackwards));
}

public void pushKeyCodeCombination(KeyCodeCombination keyCodeCombination) {
private void pushKeyCodeCombination(KeyCodeCombination keyCodeCombination) {
List<KeyCode> keyCodes = filterKeyCodes(keyCodeCombination);
pushKeyCodeCombination(toKeyCodeArray(keyCodes));
}
Expand Down

0 comments on commit 719f21a

Please sign in to comment.