Beispiel #1
0
 @Before
 public void initTestObjects() throws Exception {
   given(brjs).hasCommandPlugins(new CreateBladeCommand()).and(brjs).hasBeenCreated();
   app = brjs.app("app");
   bladeset = app.bladeset("bladeset");
   blade = bladeset.blade("blade");
   badBlade = bladeset.blade("!$%$^");
   blade1InDefaultBladeset = app.defaultBladeset().blade("blade1");
   blade2InDefaultBladeset = app.defaultBladeset().blade("blade2");
   angularTemplates = brjs.sdkTemplateGroup("angular");
   defaultTemplates = brjs.sdkTemplateGroup("default");
   myTemplateTemplates = brjs.sdkTemplateGroup("myTemplate");
 }
Beispiel #2
0
 @Test
 public void debugMessageIsLoggedWhenImplicitRequirePrefixesAreUsed() throws Exception {
   App myApp = brjs.app("myApp");
   Blade blade = myApp.defaultBladeset().blade("b1");
   Aspect aspect = myApp.defaultAspect();
   given(blade)
       .containsFile("src/pkg/Class.js")
       .and(aspect)
       .indexPageRequires("appns/b1/pkg/Class")
       .and(logging)
       .enabled();
   when(aspect).bundleSetGenerated();
   then(logging)
       .debugMessageReceived(
           BRJSConformantAssetPlugin.IMPLICIT_PACKAGE_USED,
           "apps/myApp/blades/b1/src",
           "appns/b1",
           "appns/b1")
       .and(logging)
       .otherMessagesIgnored();
 }