PageRenderTime 34ms CodeModel.GetById 26ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/sitebricks/src/test/java/com/google/sitebricks/binding/PropertyCacheTest.java

http://github.com/dhanji/sitebricks
Java | 21 lines | 13 code | 5 blank | 3 comment | 0 complexity | 453fa63e696f088ebc33e856148b5969 MD5 | raw file
 1package com.google.sitebricks.binding;
 2
 3import org.testng.annotations.Test;
 4
 5/**
 6 * @author Dhanji R. Prasanna (dhanji@gmail.com)
 7 */
 8public class PropertyCacheTest {
 9
10    @Test
11    public final void doesPropertyExist() {
12        assert new ConcurrentPropertyCache()
13                .exists("name", MvelRequestBinderTest.AnObject.class);
14
15        assert new ConcurrentPropertyCache()
16                .exists("name", MvelRequestBinderTest.AnObject.class);
17
18        assert !new ConcurrentPropertyCache()
19                .exists("notExists", MvelRequestBinderTest.AnObject.class);
20    }
21}