Package net.fortytwo.twitlogic.syntax.afterthought.impl

Source Code of net.fortytwo.twitlogic.syntax.afterthought.impl.RdfsSeeAlsoMatcherTest

package net.fortytwo.twitlogic.syntax.afterthought.impl;

import net.fortytwo.twitlogic.model.Hashtag;
import net.fortytwo.twitlogic.model.Resource;
import net.fortytwo.twitlogic.model.Triple;
import net.fortytwo.twitlogic.model.URIReference;
import net.fortytwo.twitlogic.syntax.MatcherTestBase;
import net.fortytwo.twitlogic.syntax.afterthought.DemoAfterthoughtMatcher;
import net.fortytwo.twitlogic.vocabs.RDFS;

/**
* @author Joshua Shinavier (http://fortytwo.net).
*/
public class RdfsSeeAlsoMatcherTest extends MatcherTestBase {
    private static final Resource
            BRANDX = new Hashtag("brandx"),
            BRANDX_URL = new URIReference("http://example.org/brandx"),
            SEEALSO = new URIReference(RDFS.SEEALSO);


    public void setUp() {
        matcher = new DemoAfterthoughtMatcher();
    }

    public void testAll() throws Exception {
        assertExpected("Just tried out #brandx (see http://example.org/brandx). It's as inferior as they say.",
                new Triple(BRANDX, SEEALSO, BRANDX_URL));
    }
}
TOP

Related Classes of net.fortytwo.twitlogic.syntax.afterthought.impl.RdfsSeeAlsoMatcherTest

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.