Package gov.nasa.arc.mct.evaluator.spi

Examples of gov.nasa.arc.mct.evaluator.spi.MultiProvider


    final String language = "test/language";
    MultiModelRole mcr = mc.getModel();
    mcr.getData().setLanguage(language);
    final FeedProvider.RenderingInfo expectedRenderingInfo = new FeedProvider.RenderingInfo("", Color.white, "", Color.white, false);
   
    MultiProvider mp = Mockito.mock(MultiProvider.class);
    e = mc.getCapability(Evaluator.class);
    registry.addProvider(mp);
    Executor executor = Mockito.mock(Executor.class);
    Mockito.when(executor.evaluate(Mockito.anyMap(), Mockito.anyList())).thenReturn(expectedRenderingInfo);
    Mockito.when(mp.getLanguage()).thenReturn(language);
    Mockito.when(mp.compile(Mockito.anyString())).thenReturn(executor);
   
    Assert.assertSame(expectedRenderingInfo, e.evaluate(Collections.<String,List<Map<String,String>>>emptyMap(), Collections.<FeedProvider>emptyList()));
  }
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.evaluator.spi.MultiProvider

Copyright © 2018 www.massapicom. 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.