From 9cc4995bc6d789ae746d840f3e39750ad618d9dc Mon Sep 17 00:00:00 2001 From: tkellner Date: Tue, 10 Jul 2012 12:17:17 +0000 Subject: Adapt tests to ModifyPINProvider changes git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1096 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../test/java/at/gv/egiz/smcc/pin/gui/CancelChangePINProvider.java | 6 ++++++ smcc/src/test/java/at/gv/egiz/smcc/pin/gui/ChangePINProvider.java | 6 ++++++ .../test/java/at/gv/egiz/smcc/pin/gui/InvalidChangePINProvider.java | 6 ++++++ 3 files changed, 18 insertions(+) (limited to 'smcc/src/test/java') diff --git a/smcc/src/test/java/at/gv/egiz/smcc/pin/gui/CancelChangePINProvider.java b/smcc/src/test/java/at/gv/egiz/smcc/pin/gui/CancelChangePINProvider.java index 54861939..113edecf 100644 --- a/smcc/src/test/java/at/gv/egiz/smcc/pin/gui/CancelChangePINProvider.java +++ b/smcc/src/test/java/at/gv/egiz/smcc/pin/gui/CancelChangePINProvider.java @@ -44,4 +44,10 @@ public class CancelChangePINProvider extends DummyChangePINGUI implements Modify throw new CancelledException("cancelled by cancelPINProvider"); } + @Override + public char[] providePUK(PinInfo pinInfo, PinInfo pukInfo, int retries) + throws CancelledException, InterruptedException { + throw new CancelledException("cancelled by cancelPINProvider"); + } + } \ No newline at end of file diff --git a/smcc/src/test/java/at/gv/egiz/smcc/pin/gui/ChangePINProvider.java b/smcc/src/test/java/at/gv/egiz/smcc/pin/gui/ChangePINProvider.java index f5f6cefa..d6d2914c 100644 --- a/smcc/src/test/java/at/gv/egiz/smcc/pin/gui/ChangePINProvider.java +++ b/smcc/src/test/java/at/gv/egiz/smcc/pin/gui/ChangePINProvider.java @@ -54,4 +54,10 @@ public class ChangePINProvider extends DummyChangePINGUI implements ModifyPINGUI return pin; } + @Override + public char[] providePUK(PinInfo pinInfo, PinInfo pukInfo, int retries) + throws CancelledException, InterruptedException { + return null; + } + } diff --git a/smcc/src/test/java/at/gv/egiz/smcc/pin/gui/InvalidChangePINProvider.java b/smcc/src/test/java/at/gv/egiz/smcc/pin/gui/InvalidChangePINProvider.java index 9b34f218..b1147999 100644 --- a/smcc/src/test/java/at/gv/egiz/smcc/pin/gui/InvalidChangePINProvider.java +++ b/smcc/src/test/java/at/gv/egiz/smcc/pin/gui/InvalidChangePINProvider.java @@ -61,4 +61,10 @@ public class InvalidChangePINProvider extends DummyChangePINGUI implements Modif public char[] provideNewPIN(PinInfo spec) { return pin; } + + @Override + public char[] providePUK(PinInfo pinInfo, PinInfo pukInfo, int retries) + throws CancelledException, InterruptedException { + return null; + } } -- cgit v1.2.3