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.workflow.WorkflowManagerImplTest.java

@Test(expected = StudioException.class)
public void testStartInvalidItem() throws Exception {
    this.workflowManagerSUT.start(RandomStringUtils.randomAlphabetic(10), createComments(),
            createItemListMock());//from  w  ww .j a va 2  s  . c  o  m
}

From source file:org.craftercms.studio.impl.workflow.WorkflowManagerImplTest.java

@Test(expected = StudioException.class)
public void testGetPackage() throws Exception {
    this.workflowManagerSUT.getPackage(RandomStringUtils.randomAlphabetic(10));
}

From source file:org.craftercms.studio.impl.workflow.WorkflowManagerImplTest.java

@Test(expected = StudioException.class)
public void testGetPackageInvalidPackageId() throws Exception {
    this.workflowManagerSUT.getPackage(RandomStringUtils.randomAlphabetic(10));
}

From source file:org.craftercms.studio.impl.workflow.WorkflowManagerImplTest.java

@Test(expected = StudioException.class)
public void testGetPackagePackageDoesNotExist() throws Exception {
    this.workflowManagerSUT.getPackage(RandomStringUtils.randomAlphabetic(10));
}

From source file:org.craftercms.studio.impl.workflow.WorkflowManagerImplTest.java

@Test(expected = StudioException.class)
public void testGetPackages() throws Exception {
    this.workflowManagerSUT.getPackages(RandomStringUtils.randomAlphabetic(10),
            createWorkflowPackageListMock());
}

From source file:org.craftercms.studio.impl.workflow.WorkflowManagerImplTest.java

@Test(expected = StudioException.class)
public void testGetTransitions() throws Exception {
    this.workflowManagerSUT.getTransitions(RandomStringUtils.randomAlphabetic(10));
}

From source file:org.craftercms.studio.impl.workflow.WorkflowManagerImplTest.java

@Test(expected = StudioException.class)
public void testGetTransitionsInvalidPackageId() throws Exception {
    this.workflowManagerSUT.getTransitions(RandomStringUtils.randomAlphabetic(10));
}

From source file:org.craftercms.studio.impl.workflow.WorkflowManagerImplTest.java

@Test(expected = StudioException.class)
public void testGetTransitionsPackageDoesNotExist() throws Exception {
    this.workflowManagerSUT.getTransitions(RandomStringUtils.randomAlphabetic(10));
}

From source file:org.craftercms.studio.impl.workflow.WorkflowManagerImplTest.java

@Test(expected = StudioException.class)
public void testTransition() throws Exception {
    this.workflowManagerSUT.transition(RandomStringUtils.randomAlphabetic(10), createWorkflowTransitionMock(),
            createWorkflowParameters());
}

From source file:org.craftercms.studio.impl.workflow.WorkflowManagerImplTest.java

@Test(expected = StudioException.class)
public void testTransitionPackageDoesNotExist() throws Exception {
    this.workflowManagerSUT.transition(RandomStringUtils.randomAlphabetic(10), createWorkflowTransitionMock(),
            createWorkflowParameters());
}