Examples of Story


Examples of org.moresbycoffee.have.annotations.Story

    }

    private static List<org.moresbycoffee.have.domain.Story> parseStories(final Class<?> testClass) throws MByHaveException {
        final List<org.moresbycoffee.have.domain.Story> mutableStories = new ArrayList<org.moresbycoffee.have.domain.Story>();
        if (testClass.isAnnotationPresent(Story.class)) {
            final Story story = testClass.getAnnotation(Story.class);
            final String[] storyFiles = story.files();

            for (final String storyFile : storyFiles) {

                final InputStream storyIs = loadResource(storyFile, testClass);
                org.moresbycoffee.have.domain.Story storyObject;
View Full Code Here

Examples of org.openntf.news.monster.meta.Story

    return entryToStory(entry);
   
  }

  private Story entryToStory(SyndEntry entry) {
    Story story=new Story();
   
    story.addFields(storyFields);
   
    story.setLink(entry.getLink());
    story.setRedirectEnabled(isRedirectEnabled());
   
    Calendar date = Calendar.getInstance();
   
    if (entry.getPublishedDate()!=null) {
      date.setTime(entry.getPublishedDate());
    }
    else if (entry.getUpdatedDate()!=null) {
      date.setTime(entry.getUpdatedDate());
    }
   
    story.setDate(date);

    String title=entry.getTitle();
    story.setTitle(title.trim());
   
    String content=getFeedContent(entry);
    String abstractContent=cleanHTML(content);
   
    if(abstractContent.length() >= Constants.STORY_ABSTRACT_MAXLENGTH) {
      abstractContent = abstractContent.substring(0, Constants.STORY_ABSTRACT_MAXLENGTH - 1) + "[...]";
    }
 
    story.setAbstractContent(abstractContent.trim());
//    story.setFullContent(content.trim()); // Currently we won't have full content due to possible legal implications.
   
    return story;   
  }
View Full Code Here

Examples of org.universa.tcc.gemda.entidade.Story

public class StoryDAOTest extends DAOTestCase {
 
  @Test
  public void testInserirStory() throws Exception {
    Story story = new Story(null, criarSprint(), Prioridade.MEDIA, "Implementa��o da classes de persist�ncia, servi�o e testes de unidade!");
    storyDAO.inserir(story);
    assertNotNull(story.getId());
  }
View Full Code Here

Examples of urban.kappa.Story

        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case KappaPackage.STORY:
      {
        Story story = (Story)theEObject;
        T result = caseStory(story);
        if (result == null) result = caseLine(story);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
View Full Code Here

Examples of urban.model.Story

  @Test
  public void testStory()  throws RecognitionException {
    String expected = "%causal: \"foo\"\n";
    UrbanParser parser = new UrbanParser(expected);
    Story line = (Story) parser.line();
    assertEquals(expected, line.toString());
  }
View Full Code Here

Examples of urban.urban.Story

        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case UrbanPackage.STORY:
      {
        Story story = (Story)theEObject;
        T result = caseStory(story);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case UrbanPackage.MODIFICATION:
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.