throw new SomethingWidgyHappenedError(e);
}
};
public final void testCajoledModuleContents() {
CajoledModule trivialCajoledModule = (CajoledModule) makeRewriter().expand(
new UncajoledModule(new Block()));
assertNoErrors();
Map<String, ParseTreeNode> bindings = Maps.newHashMap();
assertTrue(QuasiBuilder.match(
" ({"
+ " instantiate: @instantiate,"
+ " cajolerName: @cajolerName,"
+ " cajolerVersion: @cajolerVersion,"
+ " cajoledDate: @cajoledDate"
+ "})",
trivialCajoledModule.getModuleBody(),
bindings));
assertTrue(bindings.get("instantiate") instanceof FunctionConstructor);
assertTrue(bindings.get("cajolerName") instanceof StringLiteral);