Package org.netmelody.cieye.core.domain

Examples of org.netmelody.cieye.core.domain.Sponsor


        offenders = new RecordedKnownOffenders(new SettingsFile(peeps));
    }
   
    @Test public void
    looksUpSimpleOffenderStrings() {
        assertThat(offenders.search("vlad"), contains(new Sponsor("", "/pictures/vlad.png")));
    }
View Full Code Here


        assertThat(offenders.search("vlad"), contains(new Sponsor("", "/pictures/vlad.png")));
    }
   
    @Test public void
    looksUpSimpleOffenderStringsWithAlias() {
        assertThat(offenders.search("dracula"), contains(new Sponsor("", "/pictures/vlad.png")));
    }
View Full Code Here

        assertThat(offenders.search("dracula"), contains(new Sponsor("", "/pictures/vlad.png")));
    }
   
    @Test public void
    looksUpSimpleOffenderStringsCaseInsensitively() {
        assertThat(offenders.search("VlAd"), contains(new Sponsor("", "/pictures/vlad.png")));
    }
View Full Code Here

        assertThat(offenders.search("VlAd"), contains(new Sponsor("", "/pictures/vlad.png")));
    }
   
    @Test public void
    looksUpSpacedOffenderStrings() {
        assertThat(offenders.search(" vlad "), contains(new Sponsor("", "/pictures/vlad.png")));
    }
View Full Code Here

        assertThat(offenders.search(" vlad "), contains(new Sponsor("", "/pictures/vlad.png")));
    }
   
    @Test public void
    looksUpWrappedOffenderStrings() {
        assertThat(offenders.search("-vlad-"), contains(new Sponsor("", "/pictures/vlad.png")));
    }
View Full Code Here

        assertThat(offenders.search("-vlad-"), contains(new Sponsor("", "/pictures/vlad.png")));
    }
   
    @Test public void
    looksUpOffenderStringsAtTheBegginingOfALine() {
        assertThat(offenders.search("someguff\nvlad: did stuff"), contains(new Sponsor("", "/pictures/vlad.png")));
    }
View Full Code Here

        assertThat(offenders.search("someguff\nvlad: did stuff"), contains(new Sponsor("", "/pictures/vlad.png")));
    }
   
    @Test public void
    looksUpOffendersWhoseFingerprintsAreWrappedInHyphens() {
        assertThat(offenders.search("doh"), contains(new Sponsor("", "/pictures/doh.png")));
    }
View Full Code Here

        assertThat(offenders.search("doh"), contains(new Sponsor("", "/pictures/doh.png")));
    }
   
    @Test public void
    looksUpMultipleOffenders() {
        assertThat(offenders.search("vlad/stupid:"), contains(new Sponsor("", "/pictures/vlad.png"),
                                                              new Sponsor("", "/pictures/stupid.png")));
    }
View Full Code Here

    }
   
    @Test public void
    looksUpOffenderAndProvidesLinkToGravatarMugshot() {
        final String gravatarUrlWithHashedEmail = new Gravatar().imageUrlFor("john.doe@gmail.com");
        assertThat(offenders.search("john"), contains(new Sponsor("", gravatarUrlWithHashedEmail)));
    }
View Full Code Here

    translatesToAppropriateJsonRepresentationWithComplexTarget() {
        final LandscapeObservation observation = new LandscapeObservation(TargetDetailGroup.of(newArrayList(
                new TargetDetail("T1ID", "T1URL", "T1", Status.GREEN, 123,
                           newArrayList(new RunningBuild(percentageOf(1), Status.GREEN),
                                        new RunningBuild(percentageOf(60), Status.BROKEN)),
                           newHashSet(new Sponsor("S1", "P1"))))));
       
        assertThat(new JsonTranslator().toJson(observation), is("{\"targets\":[" +
                                                                    "{\"lastStartTime\":123," +
                                                                     "\"sponsors\":[{\"name\":\"S1\",\"picture\":\"P1\"}]," +
                                                                     "\"builds\":[" +
View Full Code Here

TOP

Related Classes of org.netmelody.cieye.core.domain.Sponsor

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.