Esempio n. 1
0
 @Test
 public void bundleCanBeGeneratedForABladeInADefaultBladesetThatAlsoHasADefaultAspect()
     throws Exception {
   given(bladeInDefaultBladeset)
       .hasClasses("Class1")
       .and(app.defaultAspect())
       .indexPageHasContent("")
       .and(bladeInDefaultBladeset.workbench())
       .indexPageRequires("appns/b1/Class1");
   when(bladeInDefaultBladeset.workbench())
       .requestReceivedInDev("js/dev/combined/bundle.js", response);
   then(response).containsCommonJsClasses("appns/b1/Class1");
 }
Esempio n. 2
0
 @Test
 public void defaultAspectCanHaveItsOwnDirectory() throws Exception {
   given(app).hasBeenCreated().and(app).containsFile("default-aspect/index.html");
   then(app.defaultAspect()).dirExists().and(app.defaultAspect()).hasFile("index.html");
 }
Esempio n. 3
0
 @Test
 public void defaultAspectIsCorrectlyIdentified() throws Exception {
   given(app).hasBeenCreated().and(app).containsFile("index.html");
   then(app.defaultAspect()).dirExists().and(app.defaultAspect()).hasFile("index.html");
 }