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.forms.FormServiceImplTest.java

@Test(expected = StudioException.class)
public void testCopyInvalidSource() throws Exception {
    this.formsManagerSUT.copy(null, RandomStringUtils.randomAlphabetic(10),
            RandomStringUtils.randomAlphabetic(150), RandomStringUtils.randomAlphabetic(150));
}

From source file:org.craftercms.studio.impl.forms.FormServiceImplTest.java

@Test(expected = StudioException.class)
public void testCopyEmptySource() throws Exception {
    this.formsManagerSUT.copy(null, RandomStringUtils.randomAlphabetic(10),
            RandomStringUtils.randomAlphabetic(150), RandomStringUtils.randomAlphabetic(150));
}

From source file:org.craftercms.studio.impl.forms.FormServiceImplTest.java

@Test(expected = StudioException.class)
public void testCopyInvalidDestination() throws Exception {
    this.formsManagerSUT.copy(null, RandomStringUtils.randomAlphabetic(10),
            RandomStringUtils.randomAlphabetic(150), RandomStringUtils.randomAlphabetic(150));
}

From source file:org.craftercms.studio.impl.forms.FormServiceImplTest.java

@Test(expected = StudioException.class)
public void testCopyDestinationDoesNotExist() throws Exception {
    this.formsManagerSUT.copy(null, RandomStringUtils.randomAlphabetic(10),
            RandomStringUtils.randomAlphabetic(150), RandomStringUtils.randomAlphabetic(150));
}

From source file:org.craftercms.studio.impl.forms.FormServiceImplTest.java

@Test(expected = StudioException.class)
public void testCopySourceExistsAtDestination() throws Exception {
    this.formsManagerSUT.copy(null, RandomStringUtils.randomAlphabetic(10),
            RandomStringUtils.randomAlphabetic(150), RandomStringUtils.randomAlphabetic(150));
}

From source file:org.craftercms.studio.impl.forms.FormsManagerImplTest.java

@Test(expected = NotImplementedException.class)
public void testList() throws Exception {
    this.formsManagerSUT.list(new Context(), RandomStringUtils.randomAlphabetic(10), createStringListMock());
}

From source file:org.craftercms.studio.impl.forms.FormsManagerImplTest.java

@Test(expected = NotImplementedException.class)
public void testListInvalidSite() throws Exception {
    this.formsManagerSUT.list(new Context(), RandomStringUtils.randomAlphabetic(10), createStringListMock());
}

From source file:org.craftercms.studio.impl.forms.FormsManagerImplTest.java

@Test(expected = NotImplementedException.class)
public void testUpdate() throws Exception {
    this.formsManagerSUT.update(new Context(), RandomStringUtils.randomAlphabetic(10),
            createFormDefinitionMock());
}

From source file:org.craftercms.studio.impl.forms.FormsManagerImplTest.java

@Test(expected = NotImplementedException.class)
public void testUpdateInvalidSite() throws Exception {
    this.formsManagerSUT.update(new Context(), RandomStringUtils.randomAlphabetic(10),
            createFormDefinitionMock());
}

From source file:org.craftercms.studio.impl.forms.FormsManagerImplTest.java

@Test(expected = NotImplementedException.class)
public void testUpdateInvalidFormDefinition() throws Exception {
    this.formsManagerSUT.update(new Context(), RandomStringUtils.randomAlphabetic(10),
            createFormDefinitionMock());
}