package org.irmacard.cardemu.selfenrol.mno;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.Map;

public class MockupSubscriberDatabase implements SubscriberDatabase {
    private  Map<String, SubscriberInfo> subscriberDatabase = null;
    private SimpleDateFormat iso = null;

    public MockupSubscriberDatabase() {
        this.subscriberDatabase = new HashMap<String, SubscriberInfo>();
        SimpleDateFormat iso = new SimpleDateFormat ("yyyyMMddZ");

        /* Example */
        addSubscriber ("IMSI_01234567890abcdef", "19001231", "20251231", "PPNUMMER0");
    }

    private void addSubscriber (String subscriberIdentity, String dob, String exp, String pp) {
        try {
            subscriberDatabase.put(subscriberIdentity,
                    new SubscriberInfo(iso.parse(dob), iso.parse(exp), pp));
        } catch (ParseException e) {
            e.printStackTrace();
        }

    }

    @Override
    public SubscriberInfo getSubscriber(String subscriberIdentity) {
        return subscriberDatabase.get (subscriberIdentity);
    }

}

@@ -290,130 +290,8 @@
 se =
- null;%0A    private SimpleDateFormat iso = null;%0A%0A    public MockupSubscriberDatabase() %7B%0A        this.subscriberDatabase =
  new
@@ -330,19 +330,23 @@
 ();%0A    
-   
+private
  SimpleD
@@ -396,14 +396,53 @@
 MMdd
-Z
 %22);%0A%0A
+    public MockupSubscriberDatabase() %7B%0A
     

Fix initialisation of ISO formatter.