Package org.jfx4ee.adm4ee.business.appcast.entity

Examples of org.jfx4ee.adm4ee.business.appcast.entity.Channel


    @Before
    public void init() throws IOException, AppcastException, Exception {
        updater = new Updater(null);
        AppcastManager appcastManagerMock = mock(AppcastManager.class);
        Appcast appcast = new Appcast();
        Channel c = new Channel();
        Item i = new Item();
        Enclosure e = new Enclosure();
        e.setVersion("2.0.4711");
        i.setEnclosure(e);
        List<Item> items = new ArrayList<>();
        items.add(i);
        c.setItems(items);
        appcast.setChannel(c);

        when(appcastManagerMock.fetch(anyString())).thenReturn(appcast);
        when(appcastManagerMock.getLatestRemoteVersion(anyString())).thenReturn("2.0.4711");
        when(appcastManagerMock.getManifestAppcastVersion(any(Path.class))).thenReturn("2.0.1322");
View Full Code Here


        Appcast appcast = getAppcast();

        assertNotNull(appcast);
        assertEquals("2.0", appcast.getVersion());

        Channel channel = appcast.getChannel();
        assertNotNull(channel);
        assertNotNull(channel.getLink());
        assertEquals("en", channel.getLanguage());

        List<Item> items = channel.getItems();
        assertNotNull(items);
        assertTrue(items.size() > 0);

        Item item = items.get(0);
        assertNotNull(item);
View Full Code Here

TOP

Related Classes of org.jfx4ee.adm4ee.business.appcast.entity.Channel

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.