Examples of Article


Examples of kr.pe.okjsp.Article

  private final String OKBOARD_LIST_BY_SID = "select * from okboard where id = ? order by seq desc";
  DbCon dbCon = new DbCon();
 

  private Article getArticle(ResultSet rs) throws SQLException {
    Article row = new Article();
    row.setBbs(rs.getString("bbsid"));
    row.setSubject(rs.getString("subject"));
    row.setContent(rs.getString("content"));
    row.setRead(rs.getInt("hit"));
    row.setMemo(rs.getInt("memo"));
    row.setWhen(rs.getTimestamp("wtime"));
    row.setSeq(rs.getInt("seq"));
    row.setWriter(rs.getString("writer"));
    return row;
  }
View Full Code Here

Examples of models.Article

    public Article getFirstArticleForFrontPage() {
       
        EntityManager entityManager = entitiyManagerProvider.get();
       
        Query q = entityManager.createQuery("SELECT x FROM Article x ORDER BY x.postedAt DESC");
        Article article = (Article) q.setMaxResults(1).getSingleResult();     
       
        return article;
       
       
    }
View Full Code Here

Examples of net.sourceforge.jwbf.core.contentRep.Article

   * @throws ProcessException on access problems
   * @see GetRevision
   */
  public synchronized Article readContent(final String name, final int properties)
  throws ActionException, ProcessException {
    return new Article(this, readData(name, properties));
  }
View Full Code Here

Examples of net.sourceforge.yagsbook.encyclopedia.articles.Article

    public void
    testArticle() {
        MockArticle     mock = new MockArticle();
       
        try {
            Article     article = new Article("test", mock.toXML());       
        } catch (IOException e) {
            fail("Failed to parse article");
        }
    }
View Full Code Here

Examples of net.sourceforge.yagsbook.encyclopedia.articles.Article

    public void
    testGetUri() {
        MockArticle     mock = new MockArticle();
       
        try {
            Article     article = new Article("test", mock.toXML());
            assertEquals("Value of returned URI was unexpected", "test",
                        article.getUri());
        } catch (IOException e) {
            fail("Failed to parse article");
        }
    }
View Full Code Here

Examples of net.sourceforge.yagsbook.encyclopedia.articles.Article

        final String    TITLE = "Test Article";
       
        MockArticle     mock = new MockArticle();
        mock.setTitle(TITLE);
        try {
            Article     article = new Article("test", mock.toXML());
            assertEquals("Value of returned title was wrong", TITLE,
                         article.getTitle());
        } catch (IOException e) {
            fail("Failed to parse article");
        }
    }
View Full Code Here

Examples of net.sourceforge.yagsbook.encyclopedia.articles.Article

        final String    AUTHOR = "Some Author";
       
        MockArticle     mock = new MockArticle();
        mock.setAuthor(AUTHOR);
        try {
            Article     article = new Article("test", mock.toXML());
            assertEquals("Value of returned author was wrong", AUTHOR,
                         article.getAuthor());
        } catch (IOException e) {
            fail("Failed to parse article");
        }
    }
View Full Code Here

Examples of net.sourceforge.yagsbook.encyclopedia.articles.Article

       
        MockArticle     mock = new MockArticle();
        mock.setVersion("$Revision: 1.2 $");
       
        try {
            Article     article = new Article("test", mock.toXML());
            assertEquals("Value of returned version was wrong", VERSION,
                         article.getVersion());
        } catch (IOException e) {
            fail("Failed to parse article");
        }
    }
View Full Code Here

Examples of net.sourceforge.yagsbook.encyclopedia.articles.Article

       
        MockArticle     mock = new MockArticle();
        mock.setDate("$Date: 2005/04/10 11:43:00 $");
       
        try {
            Article     article = new Article("test", mock.toXML());
            assertEquals("Value of returned version was wrong", DATE,
                         article.getDate());
        } catch (IOException e) {
            fail("Failed to parse article");
        }
    }
View Full Code Here

Examples of net.sourceforge.yagsbook.encyclopedia.articles.Article

       
        MockArticle     mock = new MockArticle();
        mock.setSubject(new Topic(URI, NAME));
       
        try {
            Article     article = new Article("test", mock.toXML());
           
            Topic       subject = article.getSubject();
            assertEquals("Subject has wrong uri", URI, subject.getUri());
            assertEquals("Subject has wrong name", NAME, subject.getName());
        } catch (IOException e) {
            fail("Failed to parse article");
        }
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.