/*
 * Copyright (C) 2012 - present by Yann Le Tallec.
 * Please see distribution for license.
 */
package com.assylias.jbloomberg;

import com.bloomberglp.blpapi.Event;
import com.bloomberglp.blpapi.Event.EventType;
import com.bloomberglp.blpapi.Message;
import com.bloomberglp.blpapi.impl.fc;
import java.util.Iterator;
import java.util.List;
import mockit.Mock;

public class MockEvent extends Event {

    private final EventType type;
    private final List<Message> messages;

    public MockEvent(EventType type, List<Message> messages) {
        this.type = type;
        this.messages = messages;
    }

    @Mock
    public EventType eventType() {
        return type;
    }

    @Mock
    public Iterator<Message> iterator() {
        return messages.iterator();
    }

    @Override
    public boolean isValid() {
        throw new UnsupportedOperationException();
    }

    @Override
    protected fc s() {
        throw new UnsupportedOperationException();
    }
}

@@ -292,18 +292,18 @@
 pi.impl.
-fc
+eH
 ;%0D%0Aimpor
@@ -907,34 +907,32 @@
 on();%0D%0A    %7D%0D%0A%0D%0A
-  
   @Override%0D%0A   
@@ -928,18 +928,16 @@
 erride%0D%0A
-  
   protec
@@ -944,22 +944,18 @@
 ted 
-fc s
+eH t
 () %7B%0D%0A
-    
     
@@ -994,22 +994,20 @@
 ception();%0D%0A
-  
   %7D%0D%0A%7D%0D%0A

Update mock