METHOD_0 ( ) { final com . couchbase . client . java . IDENT_0 . IDENT_1 IDENT_2 = IDENT_0 . METHOD_1 ( ) ; final com . couchbase . client . java . view . IDENT_3 view = com . couchbase . client . java . view . IDENT_4 . create ( STRING_0 , org . apache . commons . io . IDENT_5 . toString ( getClass ( ) . getResourceAsStream ( STRING_1 ) ) ) ; final com . couchbase . client . java . view . IDENT_6 document = com . couchbase . client . java . view . IDENT_6 . create ( STRING_2 , com . google . common . collect . ImmutableList . of ( view ) ) ; try { METHOD_1 . METHOD_2 ( document ) ; repository . save ( person ) ; final com . couchbase . client . java . view . IDENT_7 query = com . couchbase . client . java . view . IDENT_7 . from ( document . name ( ) , view . name ( ) ) ; query . METHOD_3 ( IDENT_8 . IDENT_9 ) ; query . debug ( ) ; query . key ( person . METHOD_4 ( ) ) ; final java . lang . IDENT_10 < com . github . IDENT_11 . IDENT_12 . repository . couchbase . it . Person > found = repository . METHOD_5 ( query ) ; "<AssertPlaceHolder>" ; } finally { METHOD_1 . METHOD_6 ( document . name ( ) ) ; } } METHOD_5 ( com . couchbase . client . java . view . IDENT_7 ) { return METHOD_7 ( IDENT_13 . METHOD_5 ( query ) . toList ( ) ) . METHOD_8 ( ) ; }
org . junit . Assert . assertEquals ( com . google . common . collect . ImmutableList . of ( person ) , found )