brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ahgittin <...@git.apache.org>
Subject [GitHub] incubator-brooklyn pull request: Implementation of proposed Test E...
Date Wed, 11 Nov 2015 09:54:05 GMT
Github user ahgittin commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/999#discussion_r44516678
  
    --- Diff: usage/test-framework/src/main/java/org/apache/brooklyn/test/framework/BaseTest.java
---
    @@ -0,0 +1,34 @@
    +package org.apache.brooklyn.test.framework;
    +
    +import org.apache.brooklyn.api.entity.Entity;
    +import org.apache.brooklyn.config.ConfigKey;
    +import org.apache.brooklyn.core.config.ConfigKeys;
    +import org.apache.brooklyn.core.entity.trait.Startable;
    +import org.apache.brooklyn.util.core.flags.SetFromFlag;
    +
    +/**
    + *  A base interface for all tests.
    + */
    +public interface BaseTest extends Entity, Startable {
    +
    +    /**
    +     * The target entity to test (optional, use either this or targetId).
    +     */
    +    @SetFromFlag(nullable = false)
    --- End diff --
    
    i now see it's very useful to pass the `Entity` when writing in java; we should definitely
continue to support this.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message