Package com.saasovation.agilepm.domain.model.team

Examples of com.saasovation.agilepm.domain.model.team.ProductOwner


        assertEquals(discussionId, productWithInitiatedDiscussion.discussion().descriptor().id());
    }

    public void testNewProduct() throws Exception {
        ProductOwner productOwner = this.persistedProductOwnerForTest();

        String newProductId =
            this.productApplicationService.newProduct(
                    new NewProductCommand(
                            "T-12345",
                            productOwner.productOwnerId().id(),
                            "My Product",
                            "The description of My Product."));

        Product newProduct =
                this.productRepository
                    .productOfId(
                            productOwner.tenantId(),
                            new ProductId(newProductId));

        assertNotNull(newProduct);
        assertEquals("My Product", newProduct.name());
        assertEquals("The description of My Product.", newProduct.description());
View Full Code Here


        assertEquals("My Product", newProduct.name());
        assertEquals("The description of My Product.", newProduct.description());
    }

    public void testNewProductWithDiscussion() throws Exception {
        ProductOwner productOwner = this.persistedProductOwnerForTest();

        String newProductId =
            this.productApplicationService.newProductWithDiscussion(
                    new NewProductCommand(
                            "T-12345",
                            productOwner.productOwnerId().id(),
                            "My Product",
                            "The description of My Product."));

        Product newProduct =
                this.productRepository
                    .productOfId(
                            productOwner.tenantId(),
                            new ProductId(newProductId));

        assertNotNull(newProduct);
        assertEquals("My Product", newProduct.name());
        assertEquals("The description of My Product.", newProduct.description());
View Full Code Here

        LevelDBUnitOfWork uow = LevelDBUnitOfWork.readOnly(this.database());

        List<Object> keys = uow.readKeys(productOwnersOfTenant);

        for (Object productOwnerId : keys) {
            ProductOwner productOwner = uow.readObject(productOwnerId.toString().getBytes(), ProductOwner.class);

            if (productOwner != null) {
                productOwners.add(productOwner);
            }
        }
View Full Code Here

    @Override
    public ProductOwner productOwnerOfIdentity(TenantId aTenantId, String aUsername) {
        LevelDBKey primaryKey = new LevelDBKey(PRIMARY, aTenantId.id(), aUsername);

        ProductOwner productOwner =
                LevelDBUnitOfWork.readOnly(this.database())
                    .readObject(primaryKey.key().getBytes(), ProductOwner.class);

        return productOwner;
    }
View Full Code Here

TOP

Related Classes of com.saasovation.agilepm.domain.model.team.ProductOwner

Copyright © 2018 www.massapicom. 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.