Package uk.co.jemos.podam.test.unit

Source Code of uk.co.jemos.podam.test.unit.Pdm42UnitTest

package uk.co.jemos.podam.test.unit;

import junit.framework.Assert;

import org.junit.Test;

import uk.co.jemos.podam.api.PodamFactory;
import uk.co.jemos.podam.api.PodamFactoryImpl;
import uk.co.jemos.podam.test.dto.pdm42.A;
import uk.co.jemos.podam.test.dto.pdm42.B;

public class Pdm42UnitTest {

  @Test
  public void testPdm42Scenario() throws Exception {

    PodamFactory factory = new PodamFactoryImpl();
    A pojo = factory.manufacturePojo(A.class);
    Assert.assertNotNull("The class A cannot be null!", pojo);

    B b = pojo.getB();

    Assert.assertNotNull("The B object cannot be null!", b);

    Assert.assertNotNull("The Map object within B cannot be null!",
        b.getCustomValue());

  }
}
TOP

Related Classes of uk.co.jemos.podam.test.unit.Pdm42UnitTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.