Example usage for org.apache.commons.lang RandomStringUtils randomAlphabetic

List of usage examples for org.apache.commons.lang RandomStringUtils randomAlphabetic

Introduction

In this page you can find the example usage for org.apache.commons.lang RandomStringUtils randomAlphabetic.

Prototype

public static String randomAlphabetic(int count) 

Source Link

Document

Creates a random string whose length is the number of characters specified.

Characters will be chosen from the set of alphabetic characters.

Usage

From source file:org.craftercms.studio.impl.audit.AuditManagerImplTest.java

@Test(expected = StudioException.class)
public void testLogActivityInvalidSite() throws Exception {
    this.auditManagerSUT.logActivity(null, RandomStringUtils.randomAlphabetic(10), createActivityMock());
}

From source file:org.craftercms.studio.impl.audit.AuditManagerImplTest.java

@Test(expected = StudioException.class)
public void testLogActivityInvalidActivity() throws Exception {
    this.auditManagerSUT.logActivity(null, RandomStringUtils.randomAlphabetic(10), createActivityMock());
}

From source file:org.craftercms.studio.impl.blueprints.BlueprintsManagerImplTest.java

@Test(expected = StudioException.class)
public void testInstall() throws Exception {
    this.blueprintsManagerSUT.install(null, RandomStringUtils.randomAlphabetic(20));
}

From source file:org.craftercms.studio.impl.blueprints.BlueprintsManagerImplTest.java

@Test(expected = StudioException.class)
public void testCreateBlueprintFromSite() throws Exception {
    this.blueprintsManagerSUT.createBlueprintFromSite(null, RandomStringUtils.randomAlphabetic(10),
            RandomStringUtils.randomAlphabetic(20), RandomStringUtils.randomAlphabetic(150));
}

From source file:org.craftercms.studio.impl.blueprints.BlueprintsManagerImplTest.java

@Test(expected = StudioException.class)
public void testCreateBlueprintFromSiteInvalidSite() throws Exception {
    this.blueprintsManagerSUT.createBlueprintFromSite(null, RandomStringUtils.randomAlphabetic(10),
            RandomStringUtils.randomAlphabetic(20), RandomStringUtils.randomAlphabetic(150));
}

From source file:org.craftercms.studio.impl.blueprints.BlueprintsManagerImplTest.java

@Test(expected = StudioException.class)
public void testCreateBlueprintFromSiteInvalidBlueprintName() throws Exception {
    this.blueprintsManagerSUT.createBlueprintFromSite(null, RandomStringUtils.randomAlphabetic(10),
            RandomStringUtils.randomAlphabetic(20), RandomStringUtils.randomAlphabetic(150));
}

From source file:org.craftercms.studio.impl.blueprints.BlueprintsManagerImplTest.java

@Test(expected = StudioException.class)
public void testCreateBlueprintFromSiteInvalidDestination() throws Exception {
    this.blueprintsManagerSUT.createBlueprintFromSite(null, RandomStringUtils.randomAlphabetic(10),
            RandomStringUtils.randomAlphabetic(20), RandomStringUtils.randomAlphabetic(150));
}

From source file:org.craftercms.studio.impl.blueprints.BlueprintsManagerImplTest.java

@Test(expected = StudioException.class)
public void testCreateBlueprintFromSiteDestinationDoesNotExist() throws Exception {
    this.blueprintsManagerSUT.createBlueprintFromSite(null, RandomStringUtils.randomAlphabetic(10),
            RandomStringUtils.randomAlphabetic(20), RandomStringUtils.randomAlphabetic(150));
}

From source file:org.craftercms.studio.impl.blueprints.BlueprintsManagerImplTest.java

@Test(expected = StudioException.class)
public void testCreateBlueprintFromSiteBlueprintExistsOnDestination() throws Exception {
    this.blueprintsManagerSUT.createBlueprintFromSite(null, RandomStringUtils.randomAlphabetic(10),
            RandomStringUtils.randomAlphabetic(20), RandomStringUtils.randomAlphabetic(150));
}

From source file:org.craftercms.studio.impl.content.ContentManagerImplTest.java

@Test(expected = NotImplementedException.class)
public void testCopyIncludeChildren() throws Exception {
    List<Item> testItems = createItemListMock();
    String testDstPath = RandomStringUtils.randomAlphabetic(256);
    this.contentManagerSUT.copy(new Context(), testItems, testDstPath, true);
}