Skip to content

Instantly share code, notes, and snippets.

@abailly
Created February 6, 2014 17:23
Show Gist options
  • Save abailly/8848689 to your computer and use it in GitHub Desktop.
Save abailly/8848689 to your computer and use it in GitHub Desktop.
code story ne build pas sous windows 7 + jdk8
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building CodeStory - Http Server 1.29-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ http ---
[INFO] Deleting d:\projects\code-story-http\target
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ http ---
[INFO]
[INFO] --- maven-license-plugin:1.9.0:check (enforce-license-headers) @ http ---
[INFO] Checking licenses...
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ http ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 5 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ http ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 92 source files to d:\projects\code-story-http\target\classes
[WARNING] /d:/projects/code-story-http/src/main/java/net/codestory/http/misc/Fluent.java: d:\projects\code-story-http\src\main\java\net\codestory\http\misc\Fluent.java uses unchecked or unsafe operations.
[WARNING] /d:/projects/code-story-http/src/main/java/net/codestory/http/misc/Fluent.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ http ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 32 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ http ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 42 source files to d:\projects\code-story-http\target\test-classes
[WARNING] /d:/projects/code-story-http/src/test/java/net/codestory/http/templating/SiteTest.java: d:\projects\code-story-http\src\test\java\net\codestory\http\templating\SiteTest.java uses unchecked or unsafe operations.
[WARNING] /d:/projects/code-story-http/src/test/java/net/codestory/http/templating/SiteTest.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ http ---
[INFO] Surefire report directory: d:\projects\code-story-http\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running net.codestory.http.AnnotationsTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.173 sec - in net.codestory.http.AnnotationsTest
Running net.codestory.http.AuthenticationTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.265 sec - in net.codestory.http.AuthenticationTest
Running net.codestory.http.compilers.AsciidocCompilerTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.857 sec - in net.codestory.http.compilers.AsciidocCompilerTest
Running net.codestory.http.compilers.CoffeeCompilerTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.703 sec <<< FAILURE! - in net.codestory.http.compilers.CoffeeCompilerTest
to_javascript(net.codestory.http.compilers.CoffeeCompilerTest) Time elapsed: 0.009 sec <<< ERROR!
java.lang.VerifyError: Control flow falls through code end
Exception Details:
Location:
jdk/nashorn/internal/scripts/Script$\^eval\_._L8$_L8$_L8$_L8$_L8-13$_L8(Ljdk/nashorn/internal/runtime/ScriptFunction;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; @85: <invalid>
Reason:
Error exists in the bytecode
Bytecode:
0000000: 2ab6 0018 4e13 01b0 2c01 b801 b3ba 01b7
0000010: 0000 b801 3959 b800 a399 000a 572c ba01
0000020: ba00 0059 b800 a399 002c 572c 59ba 01bd
0000030: 0000 5f2d b600 7eba 01c0 0000 012d ba00
0000040: 7600 002d ba01 c300 00ba 0100 0000 ba00
0000050: dc00 0057 2c
Stackmap Table:
full_frame(@35,{Object[#20],Object[#175],Object[#175],Object[#108]},{Object[#175]})
same_locals_1_stack_item_frame(@83,Object[#175])
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2554)
at java.lang.Class.getDeclaredField(Class.java:2039)
at jdk.nashorn.internal.codegen.Compiler$2.run(Compiler.java:417)
at jdk.nashorn.internal.codegen.Compiler$2.run(Compiler.java:413)
at java.security.AccessController.doPrivileged(Native Method)
at jdk.nashorn.internal.codegen.Compiler.install(Compiler.java:413)
at jdk.nashorn.internal.codegen.Compiler.install(Compiler.java:447)
at jdk.nashorn.internal.runtime.Context.compile(Context.java:948)
at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:904)
at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:406)
at jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:606)
at jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:595)
at jdk.nashorn.api.scripting.NashornScriptEngine.asCompiledScript(NashornScriptEngine.java:574)
at jdk.nashorn.api.scripting.NashornScriptEngine.compile(NashornScriptEngine.java:220)
at net.codestory.http.compilers.AbstractNashornCompiler.<init>(AbstractNashornCompiler.java:36)
at net.codestory.http.compilers.CoffeeCompiler.<init>(CoffeeCompiler.java:25)
at net.codestory.http.compilers.CoffeeCompilerTest.<clinit>(CoffeeCompilerTest.java:26)
empty(net.codestory.http.compilers.CoffeeCompilerTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class net.codestory.http.compilers.CoffeeCompilerTest
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:406)
at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:195)
at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:244)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:241)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Running net.codestory.http.compilers.CompilersTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec - in net.codestory.http.compilers.CompilersTest
Running net.codestory.http.compilers.FormulaPluginTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec - in net.codestory.http.compilers.FormulaPluginTest
Running net.codestory.http.compilers.LessCompilerTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.248 sec - in net.codestory.http.compilers.LessCompilerTest
Running net.codestory.http.compilers.LessSourceMapCompilerTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec <<< FAILURE! - in net.codestory.http.compilers.LessSourceMapCompilerTest
source_map(net.codestory.http.compilers.LessSourceMapCompilerTest) Time elapsed: 0.008 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<...version":3,
"file":"[/path/file.css.css",
"lineCount":1,
"mappings":"AAAAA,I,CAAOC;",
"sources":["/path/]file.css.map"],
"nam...> but was:<...version":3,
"file":"[\\path\\file.css.css",
"lineCount":1,
"mappings":"AAAAA,I,CAAOC;",
"sources":["\\path\\]file.css.map"],
"nam...>
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at net.codestory.http.compilers.LessSourceMapCompilerTest.source_map(LessSourceMapCompilerTest.java:32)
Running net.codestory.http.compilers.MarkdownCompilerTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec - in net.codestory.http.compilers.MarkdownCompilerTest
Running net.codestory.http.compilers.TablePluginTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec - in net.codestory.http.compilers.TablePluginTest
Running net.codestory.http.convert.TypeConvertTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.041 sec - in net.codestory.http.convert.TypeConvertTest
Running net.codestory.http.DeleteTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.072 sec - in net.codestory.http.DeleteTest
Running net.codestory.http.ErrorPageTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.26 sec - in net.codestory.http.ErrorPageTest
Running net.codestory.http.errors.HttpExceptionTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.023 sec - in net.codestory.http.errors.HttpExceptionTest
Running net.codestory.http.filters.basic.BasicAuthFilterTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.087 sec - in net.codestory.http.filters.basic.BasicAuthFilterTest
Running net.codestory.http.FilterTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.875 sec - in net.codestory.http.FilterTest
Running net.codestory.http.HeadTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.046 sec - in net.codestory.http.HeadTest
Running net.codestory.http.injection.SingletonsTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.03 sec - in net.codestory.http.injection.SingletonsTest
Running net.codestory.http.internal.ContextTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.035 sec - in net.codestory.http.internal.ContextTest
Running net.codestory.http.internal.UriParserTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec - in net.codestory.http.internal.UriParserTest
Running net.codestory.http.io.ResourcesTest
Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.041 sec <<< FAILURE! - in net.codestory.http.io.ResourcesTest
list(net.codestory.http.io.ResourcesTest) Time elapsed: 0.017 sec <<< FAILURE!
java.lang.AssertionError:
Expecting:
<['0variable.txt', '1variable.txt', '2variables.txt', '404.html', '500.html', '_config.yml', '_data\members.yml', '_data\products.json', '_includes\header.md', '_includes\partial.txt', '_layouts\default.html', '_layouts\layout.html', '_layouts\other.md', 'assets\style.css', 'assets\style.less', 'full_header.html', 'goodbye.markdown', 'hello.md', 'index.html', 'indexYaml.html', 'js\script.coffee', 'js\script.js', 'list.md', 'minimal.html', 'pageYaml.html', 'pageYamlWithMarkdownLayout.html', 'posts\bye.md', 'posts\hello.md', 'section\index.txt', 'test.html', 'testTags.md', 'useSiteVariables.html']>
to contain:
<['js/script.coffee', 'test.html']>
but could not find:
<['js/script.coffee']>
at net.codestory.http.io.ResourcesTest.list(ResourcesTest.java:35)
Running net.codestory.http.misc.FluentTest
Tests run: 63, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.09 sec - in net.codestory.http.misc.FluentTest
Running net.codestory.http.misc.Md5Test
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec - in net.codestory.http.misc.Md5Test
Running net.codestory.http.misc.Sha1Test
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in net.codestory.http.misc.Sha1Test
Running net.codestory.http.payload.PayloadTest
Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec - in net.codestory.http.payload.PayloadTest
Running net.codestory.http.PostTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.341 sec - in net.codestory.http.PostTest
Running net.codestory.http.PutTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.084 sec - in net.codestory.http.PutTest
Running net.codestory.http.routes.RouteCollectionTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.034 sec - in net.codestory.http.routes.RouteCollectionTest
Running net.codestory.http.routes.RoutesWithPatternTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in net.codestory.http.routes.RoutesWithPatternTest
Running net.codestory.http.routes.WebJarsRouteTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec - in net.codestory.http.routes.WebJarsRouteTest
Running net.codestory.http.ssl.SSLTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec - in net.codestory.http.ssl.SSLTest
Running net.codestory.http.StaticPagesTest
Tests run: 8, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 1.089 sec <<< FAILURE! - in net.codestory.http.StaticPagesTest
coffeescript(net.codestory.http.StaticPagesTest) Time elapsed: 0.603 sec <<< FAILURE!
java.lang.AssertionError: Response body doesn't match expectation.
Expected: a string containing "console.log('Hello');"
Actual:
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:406)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:71)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:81)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:190)
at com.jayway.restassured.internal.ResponseSpecificationImpl$HamcrestAssertionClosure.validate(ResponseSpecificationImpl.groovy:553)
at com.jayway.restassured.internal.ResponseSpecificationImpl$HamcrestAssertionClosure$validate$1.call(Unknown Source)
at com.jayway.restassured.internal.ResponseSpecificationImpl.validateResponseIfRequired(ResponseSpecificationImpl.groovy:691)
at com.jayway.restassured.internal.ResponseSpecificationImpl.this$2$validateResponseIfRequired(ResponseSpecificationImpl.groovy)
at com.jayway.restassured.internal.ResponseSpecificationImpl$this$2$validateResponseIfRequired$1.callCurrent(Unknown Source)
at com.jayway.restassured.internal.ResponseSpecificationImpl.content(ResponseSpecificationImpl.groovy:90)
at com.jayway.restassured.internal.ValidatableResponseOptionsImpl.content(ValidatableResponseOptionsImpl.java:79)
at net.codestory.http.testhelpers.AbstractWebServerTest$RestAssert.produces(AbstractWebServerTest.java:95)
at net.codestory.http.StaticPagesTest.coffeescript(StaticPagesTest.java:44)
less(net.codestory.http.StaticPagesTest) Time elapsed: 0.027 sec <<< FAILURE!
java.lang.AssertionError: Response body doesn't match expectation.
Expected: a string containing "\"file\":\"/assets/style.css.css\""
Actual: {
"version":3,
"file":"\\assets\\style.css.css",
"lineCount":1,
"mappings":"AAAAA,I,CACEC;",
"sources":["\\assets\\style.css.map"],
"names":["body","h1"]
}
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:406)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:71)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:81)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:190)
at com.jayway.restassured.internal.ResponseSpecificationImpl$HamcrestAssertionClosure.validate(ResponseSpecificationImpl.groovy:553)
at com.jayway.restassured.internal.ResponseSpecificationImpl$HamcrestAssertionClosure$validate$1.call(Unknown Source)
at com.jayway.restassured.internal.ResponseSpecificationImpl.validateResponseIfRequired(ResponseSpecificationImpl.groovy:691)
at com.jayway.restassured.internal.ResponseSpecificationImpl.this$2$validateResponseIfRequired(ResponseSpecificationImpl.groovy)
at com.jayway.restassured.internal.ResponseSpecificationImpl$this$2$validateResponseIfRequired$1.callCurrent(Unknown Source)
at com.jayway.restassured.internal.ResponseSpecificationImpl.content(ResponseSpecificationImpl.groovy:90)
at com.jayway.restassured.internal.ValidatableResponseOptionsImpl.content(ValidatableResponseOptionsImpl.java:79)
at net.codestory.http.testhelpers.AbstractWebServerTest$RestAssert.produces(AbstractWebServerTest.java:95)
at net.codestory.http.StaticPagesTest.less(StaticPagesTest.java:55)
Running net.codestory.http.templating.HandlebarsCompilerTest
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.113 sec - in net.codestory.http.templating.HandlebarsCompilerTest
Running net.codestory.http.templating.SiteTest
Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.159 sec <<< FAILURE! - in net.codestory.http.templating.SiteTest
data_folder(net.codestory.http.templating.SiteTest) Time elapsed: 0.01 sec <<< FAILURE!
java.lang.AssertionError:
Expected size:<2> but was:<0> in:
<{}>
at net.codestory.http.templating.SiteTest.data_folder(SiteTest.java:58)
Running net.codestory.http.templating.TemplateTest
Tests run: 7, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.069 sec <<< FAILURE! - in net.codestory.http.templating.TemplateTest
standard_head_fields(net.codestory.http.templating.TemplateTest) Time elapsed: 0.011 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<'<!DOCTYPE html>[
<html lang="FR" ng-app="app">
<head>
<meta charset="UTF-8">
<title>TITLE</title>
<meta name="viewport" content="viewport">
<meta name="keywords" content="keyword1, keyword2">
<meta name="description" content="description">
<meta name="author" content="author">
<link rel="stylesheet" href="style.less">
<link rel="stylesheet" href="style1.css">
<link rel="stylesheet" href="style2.css">
</head>
<body>
Hello World
</body>
</html>]
'> but was:<'<!DOCTYPE html>[
<html lang="FR" ng-app="app">
<head>
<meta charset="UTF-8">
<title>TITLE</title>
<meta name="viewport" content="viewport">
<meta name="keywords" content="keyword1, keyword2">
<meta name="description" content="description">
<meta name="author" content="author">
<link rel="stylesheet" href="style.less">
<link rel="stylesheet" href="style1.css">
<link rel="stylesheet" href="style2.css">
</head>
<body>
Hello World
</body>
</html>]
'>
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at net.codestory.http.templating.TemplateTest.standard_head_fields(TemplateTest.java:74)
site_variables(net.codestory.http.templating.TemplateTest) Time elapsed: 0.014 sec <<< FAILURE!
java.lang.AssertionError:
Expecting:
<'<!doctype html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
Hello, customer Bob wants to buy for
</body>
</html>'>
to contain:
<'Hello, customer Bob wants to buy p1 for parkr'>
at net.codestory.http.templating.TemplateTest.site_variables(TemplateTest.java:43)
default_layout(net.codestory.http.templating.TemplateTest) Time elapsed: 0.01 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<'<!DOCTYPE html>[
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
Hello World
</body>
</html>]
'> but was:<'<!DOCTYPE html>[
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
Hello World
</body>
</html>]
'>
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at net.codestory.http.templating.TemplateTest.default_layout(TemplateTest.java:53)
Running net.codestory.http.templating.YamlFrontMatterTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in net.codestory.http.templating.YamlFrontMatterTest
Running net.codestory.http.templating.YamlParserTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in net.codestory.http.templating.YamlParserTest
Running net.codestory.http.TemplatingTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.134 sec - in net.codestory.http.TemplatingTest
Running net.codestory.http.types.ContentTypesTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in net.codestory.http.types.ContentTypesTest
Running net.codestory.http.WebServerTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.605 sec - in net.codestory.http.WebServerTest
Results :
Failed tests:
LessSourceMapCompilerTest.source_map:32 expected:<...version":3,
"file":"[/path/file.css.css",
"lineCount":1,
"mappings":"AAAAA,I,CAAOC;",
"sources":["/path/]file.css.map"],
"nam...> but was:<...version":3,
"file":"[\\path\\file.css.css",
"lineCount":1,
"mappings":"AAAAA,I,CAAOC;",
"sources":["\\path\\]file.css.map"],
"nam...>
ResourcesTest.list:35
Expecting:
<['0variable.txt', '1variable.txt', '2variables.txt', '404.html', '500.html', '_config.yml', '_data\members.yml', '_data\products.json', '_includes\header.md', '_includes\partial.txt', '_layouts\default.html', '_layouts\layout.html', '_layouts\other.md', 'assets\style.css', 'assets\style.less', 'full_header.html', 'goodbye.markdown', 'hello.md', 'index.html', 'indexYaml.html', 'js\script.coffee', 'js\script.js', 'list.md', 'minimal.html', 'pageYaml.html', 'pageYamlWithMarkdownLayout.html', 'posts\bye.md', 'posts\hello.md', 'section\index.txt', 'test.html', 'testTags.md', 'useSiteVariables.html']>
to contain:
<['js/script.coffee', 'test.html']>
but could not find:
<['js/script.coffee']>
StaticPagesTest.coffeescript:44 Response body doesn't match expectation.
Expected: a string containing "console.log('Hello');"
Actual:
StaticPagesTest.less:55 Response body doesn't match expectation.
Expected: a string containing "\"file\":\"/assets/style.css.css\""
Actual: {
"version":3,
"file":"\\assets\\style.css.css",
"lineCount":1,
"mappings":"AAAAA,I,CACEC;",
"sources":["\\assets\\style.css.map"],
"names":["body","h1"]
}
SiteTest.data_folder:58
Expected size:<2> but was:<0> in:
<{}>
TemplateTest.standard_head_fields:74 expected:<'<!DOCTYPE html>[
<html lang="FR" ng-app="app">
<head>
<meta charset="UTF-8">
<title>TITLE</title>
<meta name="viewport" content="viewport">
<meta name="keywords" content="keyword1, keyword2">
<meta name="description" content="description">
<meta name="author" content="author">
<link rel="stylesheet" href="style.less">
<link rel="stylesheet" href="style1.css">
<link rel="stylesheet" href="style2.css">
</head>
<body>
Hello World
</body>
</html>]
'> but was:<'<!DOCTYPE html>[
<html lang="FR" ng-app="app">
<head>
<meta charset="UTF-8">
<title>TITLE</title>
<meta name="viewport" content="viewport">
<meta name="keywords" content="keyword1, keyword2">
<meta name="description" content="description">
<meta name="author" content="author">
<link rel="stylesheet" href="style.less">
<link rel="stylesheet" href="style1.css">
<link rel="stylesheet" href="style2.css">
</head>
<body>
Hello World
</body>
</html>]
'>
TemplateTest.site_variables:43
Expecting:
<'<!doctype html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
Hello, customer Bob wants to buy for
</body>
</html>'>
to contain:
<'Hello, customer Bob wants to buy p1 for parkr'>
TemplateTest.default_layout:53 expected:<'<!DOCTYPE html>[
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
Hello World
</body>
</html>]
'> but was:<'<!DOCTYPE html>[
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
Hello World
</body>
</html>]
'>
Tests in error:
CoffeeCompilerTest.<clinit>:26 » Verify Control flow falls through code end
Ex...
CoffeeCompilerTest.empty » NoClassDefFound Could not initialize class net.code...
Tests run: 241, Failures: 8, Errors: 2, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 28.319s
[INFO] Finished at: Thu Feb 06 18:22:07 CET 2014
[INFO] Final Memory: 23M/338M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project http: There are test failures.
[ERROR]
[ERROR] Please refer to d:\projects\code-story-http\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment