Coder Social home page Coder Social logo

tpiekarski / coupon-engine Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 5.0 102 KB

Prototype for a Coupon-Engine driven by Easy Rules and Spring Expression Language

Java 98.53% Shell 0.91% Batchfile 0.57%
java java-8 rules-engine coupons prototype expression-language cli json cart cli-prototype

coupon-engine's People

Contributors

dependabot[bot] avatar tpiekarski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

coupon-engine's Issues

Upgrade to JDK 11 (Check build, tests and runtime)

At the moment running tests with JDK 11 fails due to following exception:

Exception in thread "main" java.lang.reflect.InvocationTargetException
1361	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
1362	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
1363	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
1364	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
1365	at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513)
1366	at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525)
1367Caused by: java.lang.RuntimeException: Class java/util/UUID could not be instrumented.
1368	at org.jacoco.agent.rt.internal_6da5971.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:140)
1369	at org.jacoco.agent.rt.internal_6da5971.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:101)
1370	at org.jacoco.agent.rt.internal_6da5971.PreMain.createRuntime(PreMain.java:55)
1371	at org.jacoco.agent.rt.internal_6da5971.PreMain.premain(PreMain.java:47)
1372	... 6 more
1373Caused by: java.lang.NoSuchFieldException: $jacocoAccess
1374	at java.base/java.lang.Class.getField(Class.java:2000)
1375	at org.jacoco.agent.rt.internal_6da5971.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:138)
1376	... 9 more
1377FATAL ERROR in native method: processing of -javaagent failed
1378Aborted (core dumped)

Fix broken build/test pipeline at Travis CI

Master branch can not be build anymore, see logs for details:
https://travis-ci.org/github/tpiekarski/coupon-engine/builds/406571391

install-jdk.sh 2020-03-17
426/home/travis/bin/install-jdk.sh: line 183: [[: 8openjdk8: value too great for base (error token is "8openjdk8")
427/home/travis/bin/install-jdk.sh: line 183: [[: 8openjdk8: value too great for base (error token is "8openjdk8")
428Couldn't determine a download url for 8openjdk8-GPL on linux-x64
429The command "~/bin/install-jdk.sh --target "/home/travis/oraclejdk8openjdk8" --workspace "/home/travis/.cache/install-jdk" --feature "8openjdk8" --license "BCL"" failed and exited with 1 during .

Fix broken unit test for combining validation rules with AND

The test testANDValidationRulesCombination in ValidationTest is suddenly failing.

java.lang.AssertionError
	at org.junit.Assert.fail(Assert.java:86)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.junit.Assert.assertTrue(Assert.java:52)
	at de.delinero.copt.combinations.ValidationTest.testANDValidationRulesCombination(ValidationTest.java:53)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
	at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
	at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:230)
	at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:58)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.