currency/test/org/apidesign/apifest08/test/Task1Test.java
changeset 3 81bafaac7336
parent 1 676b4c07fa0a
child 12 b6c21003ddc9
     1.1 --- a/currency/test/org/apidesign/apifest08/test/Task1Test.java	Sat Sep 20 18:26:55 2008 +0200
     1.2 +++ b/currency/test/org/apidesign/apifest08/test/Task1Test.java	Mon Sep 22 18:19:25 2008 +0200
     1.3 @@ -4,13 +4,12 @@
     1.4  import org.apidesign.apifest08.currency.Convertor;
     1.5  
     1.6  /** Finish the Convertor API, and then write bodies of methods inside
     1.7 - * of this class to match the given tasks.
     1.8 + * of this class to match the given tasks. To fullfil your task, use the
     1.9 + * API define in the <code>org.apidesign.apifest08.currency</code> package.
    1.10 + * Do not you reflection, or other hacks as your code
    1.11 + * shall run without any runtime permissions.
    1.12   */
    1.13  public class Task1Test extends TestCase {
    1.14 -    static {
    1.15 -        // your code shall run without any permissions
    1.16 -    }
    1.17 -    
    1.18      public Task1Test(String testName) {
    1.19          super(testName);
    1.20      }
    1.21 @@ -26,6 +25,9 @@
    1.22      /** Create convertor that understands two currencies, CZK and
    1.23       *  USD. Make 1 USD == 17 CZK.
    1.24       *
    1.25 +     * Creation of the convertor shall not require subclassing of any class
    1.26 +     * or interface on the client side.
    1.27 +     *
    1.28       * @return prepared convertor ready for converting USD to CZK and CZK to USD
    1.29       */
    1.30      public static Convertor createCZKtoUSD() {
    1.31 @@ -35,6 +37,9 @@
    1.32      /** Create convertor that understands two currencies, CZK and
    1.33       *  SKK. Make 100 SKK == 80 CZK.
    1.34       *
    1.35 +     * Creation of the convertor shall not require subclassing of any class
    1.36 +     * or interface on the client side.
    1.37 +     * 
    1.38       * @return prepared convertor ready for converting SKK to CZK and CZK to SKK
    1.39       */
    1.40      public static Convertor createSKKtoCZK() {