Example usage for org.springframework.util Assert notEmpty

List of usage examples for org.springframework.util Assert notEmpty

Introduction

In this page you can find the example usage for org.springframework.util Assert notEmpty.

Prototype

@Deprecated
public static void notEmpty(@Nullable Map<?, ?> map) 

Source Link

Document

Assert that a Map contains entries; that is, it must not be null and must contain at least one entry.

Usage

From source file:com.oakhole.core.uitls.ReflectionsTest.java

public void testGetAccessibleFields() throws Exception {
    Assert.notEmpty(Reflections.getAccessibleFields(new String()));
}

From source file:org.mule.modules.automation.testcases.GetRolesTestCases.java

@Category({ RegressionTests.class, SmokeTests.class })
@Test//from  w ww  .j  a va  2  s.c  o  m
public void testGetRoles() throws Exception {
    Collection<Role> roles = runFlowAndGetPayload("get-roles");
    Assert.notNull(roles);
    Assert.notEmpty(roles);
}

From source file:com.epam.cme.storefront.forms.validation.EqualAttributesValidator.java

@Override
public void initialize(final EqualAttributes constraintAnnotation) {
    Assert.notEmpty(constraintAnnotation.value());
    Assert.isTrue(constraintAnnotation.value().length == 2);
    firstAttribute = constraintAnnotation.value()[0];
    secondAttribute = constraintAnnotation.value()[1];
    Assert.hasText(firstAttribute);/*ww  w  . j av  a2  s .  co m*/
    Assert.hasText(secondAttribute);
    Assert.isTrue(!firstAttribute.equals(secondAttribute));
}

From source file:org.mule.modules.automation.testcases.GetProjectIssuesTestCases.java

@Category({ RegressionTests.class, SmokeTests.class })
@Test/*from   w  ww. jav a 2s .co m*/
public void testGetProjectIssues() throws Exception {
    Collection<Issue> issues = runFlowAndGetPayload("get-project-issues");
    Assert.notNull(issues);
    Assert.notEmpty(issues);
}

From source file:biz.c24.io.spring.integration.validation.C24AggregatedMessageValidationException.java

public C24AggregatedMessageValidationException(ValidationEvent[] validationEvents) {
    Assert.notEmpty(validationEvents);
    this.validationEvents = new ArrayList<ValidationEvent>(Arrays.asList(validationEvents));
}

From source file:org.mule.modules.automation.testcases.GetProjectMembersTestCases.java

@Category({ RegressionTests.class, SmokeTests.class })
@Test//from  w w w . ja v a  2  s  . c  o m
public void testGetProjectMembers() throws Exception {
    Collection<Membership> members = runFlowAndGetPayload("get-project-members");
    Assert.notNull(members);
    Assert.notEmpty(members);
}

From source file:org.mule.modules.automation.testcases.GetAvailableProjectsTestCases.java

@Category({ RegressionTests.class, SmokeTests.class })
@Test/*from w w w .  j  a v a  2s.c  o m*/
public void testGetAvailableProjects() throws Exception {
    Collection<Project> projects = runFlowAndGetPayload("get-available-projects");
    Assert.notNull(projects);
    Assert.notEmpty(projects);
}

From source file:com.azaptree.services.command.impl.CommandChainSupport.java

public CommandChainSupport(final Command... commands) {
    super();
    Assert.notEmpty(commands);
    this.commands = commands;
    initChain();
}

From source file:net.eusashead.spring.gaecache.GaeCacheKey.java

public GaeCacheKey(ArgumentHash[] args) {
    Assert.notNull(args);
    Assert.notEmpty(args);
    Assert.noNullElements(args);
    this.hashes = args;
}

From source file:com.nmote.xr.spring.XRSpringExporter.java

public void setServers(List<XRExportDef<?>> servers) {
    Assert.notNull(servers);
    Assert.notEmpty(servers);
    this.servers = servers;
}