Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.search.backend.testing
Class SharedTestDataBuilder

java.lang.Object
  extended by org.nuxeo.ecm.core.search.backend.testing.SharedTestDataBuilder

public class SharedTestDataBuilder
extends java.lang.Object

A class to share creation of testing data across tests. The data is supposed to be books, but that could change.

Should probably go to org.nuxeo.com.search.api

Author:
gracinet@nuxeo.com

Method Summary
static java.util.List<ResolvedData> aboutLifeCommon()
           
static ResolvedResource aboutLifeIndexableBookSchemaResource()
           
static ResolvedResource aboutLifeIndexableBookSchemaResource2()
          Same with different barcode
static ACP makeAboutLifeACP()
           
static ResolvedResources makeAboutLifeAggregated()
           
static ResolvedResources makeAboutLifeAggregated2()
           
static ResolvedResources makeWarPeace()
           
static ACP makeWarPeaceACP()
           
static ResolvedResources revelations(int i)
          Makes aggregated resource for a book ("Revelations") with an integer parameter.
static ResolvedResources[] revelationsBunch(int nb)
          Makes aggregated resources for a bunch of almost identical books.
static ResolvedResources revelationsEmptyDate(int i)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

aboutLifeIndexableBookSchemaResource

public static ResolvedResource aboutLifeIndexableBookSchemaResource()

aboutLifeIndexableBookSchemaResource2

public static ResolvedResource aboutLifeIndexableBookSchemaResource2()
Same with different barcode


makeAboutLifeACP

public static ACP makeAboutLifeACP()

makeWarPeaceACP

public static ACP makeWarPeaceACP()

aboutLifeCommon

public static java.util.List<ResolvedData> aboutLifeCommon()

makeAboutLifeAggregated

public static ResolvedResources makeAboutLifeAggregated()

makeAboutLifeAggregated2

public static ResolvedResources makeAboutLifeAggregated2()

makeWarPeace

public static ResolvedResources makeWarPeace()

revelationsBunch

public static ResolvedResources[] revelationsBunch(int nb)
Makes aggregated resources for a bunch of almost identical books.

Barcode pattern: 135xxxx

Resource id pattern: RVLxxxx

Parameters:
nb - the number of resources to create
Returns:
the resoures in an array

revelations

public static ResolvedResources revelations(int i)
Makes aggregated resource for a book ("Revelations") with an integer parameter.

Barcode pattern: 135xxxx

Resource id pattern: RVLxxxx

published date: April

i
-th, 2007

Parameters:
i - the integer parameter
Returns:
the resoures in an array

revelationsEmptyDate

public static ResolvedResources revelationsEmptyDate(int i)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.