Examples of Source


Examples of com.iqbon.spider.domain.Source

    sourceDao.insertOne(source);
  }

  @Test
  public void testQuerySourceByUrl() {
    Source s = sourceDao.querySourceByUrl(source.getUrl());
    logger.info(ToStringBuilder.reflectionToString(s));

  }
View Full Code Here

Examples of com.jitcaforwin.extended.impl.internal.sources.Source

    }
    return successfull;
  }
 
  private Source createSourceMock(){
    Source sourceMock = EasyMock.createMock(Source.class);
    EasyMock.expect(sourceMock.isLazy()).andReturn(true).anyTimes();
    EasyMock.expect(sourceMock.getTrackFactory()).andReturn(null).anyTimes();
   
    Artist michael = EasyMock.createMock(Artist.class);
    Artist paul = EasyMock.createMock(Artist.class);
   
    Artist memberA = EasyMock.createMock(Artist.class);
    Artist memberB = EasyMock.createMock(Artist.class);
    Artist memberC = EasyMock.createMock(Artist.class);
    Artist memberD = EasyMock.createMock(Artist.class);
   
    EasyMock.expect(michael.getName()).andReturn("Michael Jackson").anyTimes();
    EasyMock.expect(paul.getName()).andReturn("Paul McCartney").anyTimes();
    EasyMock.expect(sourceMock.getArtist("Michael Jackson")).andReturn(michael).anyTimes();
    EasyMock.expect(sourceMock.getArtist("Paul McCartney")).andReturn(paul).anyTimes();
   
    EasyMock.expect(memberA.getName()).andReturn("MemberA").anyTimes();
    EasyMock.expect(sourceMock.getArtist("MemberA")).andReturn(memberA).anyTimes();
   
    EasyMock.expect(memberB.getName()).andReturn("MemberB").anyTimes();
    EasyMock.expect(sourceMock.getArtist("MemberB")).andReturn(memberB).anyTimes();
   
    EasyMock.expect(memberC.getName()).andReturn("MemberC").anyTimes();
    EasyMock.expect(sourceMock.getArtist("MemberC")).andReturn(memberC).anyTimes();
   
    EasyMock.expect(memberD.getName()).andReturn("MemberD").anyTimes();
    EasyMock.expect(sourceMock.getArtist("MemberD")).andReturn(memberD).anyTimes();
   
    EasyMock.replay(michael);
    EasyMock.replay(paul);
    EasyMock.replay(memberA);
    EasyMock.replay(memberB);
View Full Code Here

Examples of com.linkedin.camus.etl.kafka.common.Source

                .getErrorCount() + count.getErrorCount());
            existingCounts.setGranularity(count.getGranularity());
            existingCounts.setTopic(count.getTopic());
            for (Entry<String, Source> entry : count.getCounts()
                .entrySet()) {
              Source source = entry.getValue();
              if (existingCounts.getCounts().containsKey(
                  source.toString())) {
                Source old = existingCounts.getCounts().get(
                    source.toString());
                old.setCount(old.getCount() + source.getCount());
                existingCounts.getCounts().put(old.toString(),
                    old);
              } else {
                existingCounts.getCounts().put(
                    source.toString(), source);
              }
View Full Code Here

Examples of com.oracle.truffle.api.source.Source

        rubiniusLibrary = new RubiniusLibrary(this);
    }

    public void loadRubyCore(String fileName) {
        final Source source;

        try {
            source = Source.fromReader(new InputStreamReader(context.getRuntime().getLoadService().getClassPathResource(context.getRuntime().getJRubyClassLoader(), fileName).getInputStream()), fileName);
        } catch (IOException e) {
            throw new RuntimeException(e);
View Full Code Here

Examples of com.pogofish.jadt.source.Source

     * Test handling of exceptions that occur during reader close
     */
    @Test
    public void testErrorClosing() {
        final IOException thrown = new IOException("oh yeah");
        final Source source = new Source() {
           
            @Override
            public String getSrcInfo() {
                return "whatever";
            }
View Full Code Here

Examples of com.rometools.rome.feed.rss.Source

        return item;
    }

    protected Source createSource(final SyndFeed feed) {
        Source source = null;
        if (feed != null) {
            source = new Source();
            source.setUrl(feed.getUri());
            source.setValue(feed.getTitle());
        }
        return source;
    }
View Full Code Here

Examples of com.salesforce.omakase.parser.Source

                Location location = new Location(null, raw.line(), raw.column(), -1);
                String evaluated = provider.getValue(expression, location).toString();
                if (evaluated.isEmpty()) {
                    broadcaster.broadcast(new EmptyTerm(expression));
                } else {
                    Source source = new Source(evaluated.toString(), raw.line(), raw.column());
                    ParserFactory.termSequenceParser().parse(source, broadcaster, refiner);
                }
            }
        } catch (QuickFixException e) {
            throw new ParserException(e);
View Full Code Here

Examples of com.sun.syndication.feed.rss.Source

    protected Item parseItem(Element rssRoot,Element eItem) {
        Item item = super.parseItem(rssRoot,eItem);

        Element e = eItem.getChild("source",getRSSNamespace());
        if (e!=null) {
            Source source = new Source();
            String url = e.getAttributeValue("url");//getRSSNamespace()); DONT KNOW WHY DOESN'T WORK
            source.setUrl(url);
            source.setValue(e.getText());
            item.setSource(source);
        }

        // 0.92 allows one enclosure occurrence, 0.93 multiple
        // just saving to write some code.
View Full Code Here

Examples of com.sun.tools.javac.code.Source

    protected String classLoaderClass;

    protected Source getSource() {
        String sourceName = options.get(OptionName.SOURCE);
        Source source = null;
        if (sourceName != null)
            source = Source.lookup(sourceName);
        return (source != null ? source : Source.DEFAULT);
    }
View Full Code Here

Examples of com.volantis.styling.compiler.Source

        listMock = new MutableStylerListMock("listMock", expectations);

        deltaMock = new StylerListMock("deltaMock", expectations);

        Source firstSource = StyleSheetSource.LAYOUT;
        Source secondSource = StyleSheetSource.THEME;

        listFirstNormalStylerMock = createStylerMock(
                "listFirstNormalStylerMock", firstSource, Priority.NORMAL);

        listSecondNormalStylerMock = createStylerMock(
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.