Examples of IJitcaCOMInterface


Examples of com.jitcaforwin.cominterface.api.IJitcaCOMInterface

    final int sourceID = 1;
    final int playlistID = 2;
    final int trackID = 3;
    final int databaseID = 4;
   
    IJitcaCOMInterface comMock = EasyMock.createMock(IJitcaCOMInterface.class);
    DispatchObject objectMock = EasyMock.createMock(DispatchObject.class);
   
    EasyMock.expect(objectMock.createCOMInterface()).andReturn(comMock);
    EasyMock.expect(objectMock.isValid()).andReturn(true);
    EasyMock.expect(comMock.getPropertyAsLong("SourceID")).andReturn((long) sourceID);
    EasyMock.expect(comMock.getPropertyAsLong("PlaylistID")).andReturn((long) playlistID);
    EasyMock.expect(comMock.getPropertyAsLong("TrackID")).andReturn((long) trackID);
    EasyMock.expect(comMock.getPropertyAsLong("TrackDatabaseID")).andReturn((long) databaseID);
   
    EasyMock.replay(objectMock);
    EasyMock.replay(comMock);
   
    IITObject object = new ITObjectImpl(objectMock);
View Full Code Here

Examples of com.jitcaforwin.cominterface.api.IJitcaCOMInterface

public class EventControllerTest {

  @Test(expected=JitcaRuntimeException.class)
  public void NegativeEventControllerTest(){
    IJitcaCOMInterface comMock = EasyMock.createMock(IJitcaCOMInterface.class);
    IiTunes iTunes = new iTunesApp(comMock)// Mock should never be used by the API.
    TestEventListner testListener = new TestEventListner();
    iTunes.removeEventListener(testListener);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.