Github user ahgittin commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/1120#discussion_r48272538
  
    --- Diff: 
usage/camp/src/test/java/org/apache/brooklyn/camp/brooklyn/DslAndRebindYamlTest.java
 ---
    @@ -124,6 +126,19 @@ public void testDslAttributeWhenReady() throws 
Exception {
         }
     
         @Test
    +    public void testDslAttributeWhenReadyPersisted() throws Exception {
    --- End diff --
    
    as discussed we want to test where `attributeWhenReady` is used in an 
entity spec, e.g. something like
    
    ```
    name: Test Cluster
    services:
    - type: org.apache.brooklyn.entity.stock.DynamicCluster
      id: test-cluster
      initialSize: 1
      memberSpec:
        $brooklyn:entitySpec:
          type: org.apache.brooklyn.entity.test.TestEntity
          brooklyn.config:
            test.confName: 
$brooklyn:component("test-cluster").attributeWhenReady("sensor")
    ```
    
    with this you could then in your test set `test-cluster` sensor `sensor` 
e.g. to `foo` and then ensure that `foo` is *not* being written (ie not in the 
`testConfNamePersistedState`)



---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to