By moving the result of the expression in the if statement into the assumption,
we are using the assumption call as intended and there is no need for noinspect
anymore.
See https://octopus.com/blog/maven-versioning-explainedhttps://cwiki.apache.org/confluence/display/MAVENOLD/Versioning
Release tag should be under rel/* namespace (as per ASF board decision)
Use of v${version} without dot replaced with underscores help third-party consumers
as they don't have to replace dots.
Neither of the articles include use of _ for separators.
Technically speaking, "RC tag" is not a Maven version, however
it might be a good idea to use well-known conventions.
Previously the scripts used dependencies between tasks of different modules.
That is anti-pattern, however it somehow worked in Gradle 5.5.
For now the configurations are used to make dependencies between modules and to pass files across Gradle modules.
stage-vote-release plugin creates 3 configurations: releaseFiles, releaseSignatures, previewSite
:src:dist adds artifacts to the configurations, and the root project depends on project(":src:dist", configurationName)
The configuration create/use is hidden in stage-vote-release-plugin itself (see releaseArtifacts)
* org.junit.Test/Before/After -> ...jupiter.api.Test/BeforeEach/AfterEach
Ignored -> Disabled.
@Test(expected ...) -> Assertions.assertThrows(...)
A few Assert -> Assertions.
Removed error collector.
Some whitespace.
* Added method for repeated code
* TestStringtoFile: Migrated to JUnit5
* BasicCurlParserTest: Migrated to JUnit 5
* ParseCurlCommandActionTest: JUnit 5 + tidy ParseCurlCommandAction
* ResourcesDownloader: Formatting and guard clause
* ParseCurlCommandActionTest: Use TmpDir only where required.
Also some formatting and simplification of throws.
* Formatting and comments
* Use Objects.requireNonNull instead of custom method.
* Used System.arraycopy instead of for loop,
* Added test for JmeterKeyStore and fixed JavaDocs
* Removed misleading comment and improved readability.
* Used Arrays.copyOf and updated JavaDoc
* Updated getCertificateChain to match behaviour of documentation.
* Fix import order
* Reverted change to getCertificateChain and added clarifying comment
* Clarified description of start and end index.
JMeter has been updated to use gradle for building instead of ant.
Some directories have been added meanwhile (in the src folder and elsewhere).
Try to reflect those changes in the tutorial.
The plugin starts resolutions with very short timeouts, so it might produce
lots of ConnectExceptions.
1.31.0 does not print exceptions when the timeout was less than 4 seconds.
The exception seems to be Windows-specific
AssertionFailedError: IPv4 <-> IPv6 connectivity must fail. sourceIp = /0:0:0:0:0:0:0:1, targetHost = 127.0.0.1
data: java.net.BindException: Cannot assign requested address: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
In theory, sourceIp=::1, targetHost=localhost should work, however, in practice in does not.
So the test is reworked to avoid "localhost", and it uses ip addresses explicitly
Stored the address rather than engine, especially as the engine
was null for failedEngines meaning the log would print a list of nulls.
Also used List constructor instead of addAll.
The exception when using 1.8.0_152 is as follows
2019-10-04 11:01:42,612 ERROR o.a.j.JMeter: Uncaught exception:
java.lang.ClassFormatError: Illegal field name "org.apache.jorphan.gui.MenuScroller$this" in class org/apache/jorphan/gui/MenuScroller$MenuScrollTimer
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_152]
at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[?:1.8.0_152]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.8.0_152]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) ~[?:1.8.0_152]
at java.net.URLClassLoader.access$100(URLClassLoader.java:73) ~[?:1.8.0_152]
at java.net.URLClassLoader$1.run(URLClassLoader.java:368) ~[?:1.8.0_152]
at java.net.URLClassLoader$1.run(URLClassLoader.java:362) ~[?:1.8.0_152]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_152]
at java.net.URLClassLoader.findClass(URLClassLoader.java:361) ~[?:1.8.0_152]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_152]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_152]
at org.apache.jorphan.gui.MenuScroller$MenuScrollItem.<init>(MenuScroller.java:640) ~[jorphan.jar:5.2.0-SNAPSHOT]
at org.apache.jorphan.gui.MenuScroller.<init>(MenuScroller.java:364) ~[jorphan.jar:5.2.0-SNAPSHOT]
at org.apache.jorphan.gui.MenuScroller.<init>(MenuScroller.java:329) ~[jorphan.jar:5.2.0-SNAPSHOT]
at org.apache.jorphan.gui.MenuScroller.<init>(MenuScroller.java:286) ~[jorphan.jar:5.2.0-SNAPSHOT]
at org.apache.jorphan.gui.MenuScroller.setScrollerFor(MenuScroller.java:140) ~[jorphan.jar:5.2.0-SNAPSHOT]
at org.apache.jorphan.gui.GuiUtils.makeScrollableMenu(GuiUtils.java:176) ~[jorphan.jar:5.2.0-SNAPSHOT]
at org.apache.jmeter.gui.util.MenuFactory.makeMenu(MenuFactory.java:442) ~[ApacheJMeter_core.jar:5.2.0-SNAPSHOT]
at org.apache.jmeter.gui.util.MenuFactory.makeMenu(MenuFactory.java:420) ~[ApacheJMeter_core.jar:5.2.0-SNAPSHOT]
at org.apache.jmeter.control.gui.TestPlanGui.createPopupMenu(TestPlanGui.java:92) ~[ApacheJMeter_core.jar:5.2.0-SNAPSHOT]
at org.apache.jmeter.gui.tree.JMeterTreeNode.createPopupMenu(JMeterTreeNode.java:185) ~[ApacheJMeter_core.jar:5.2.0-SNAPSHOT]
at org.apache.jmeter.gui.action.EditCommand.doAction(EditCommand.java:46) ~[ApacheJMeter_core.jar:5.2.0-SNAPSHOT]
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:88) ~[ApacheJMeter_core.jar:5.2.0-SNAPSHOT]
at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:70) ~[ApacheJMeter_core.jar:5.2.0-SNAPSHOT]
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) ~[?:1.8.0_152]
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) ~[?:1.8.0_152]
at java.awt.EventQueue.access$500(EventQueue.java:97) ~[?:1.8.0_152]
at java.awt.EventQueue$3.run(EventQueue.java:709) ~[?:1.8.0_152]
at java.awt.EventQueue$3.run(EventQueue.java:703) ~[?:1.8.0_152]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_152]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) ~[?:1.8.0_152]
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) ~[?:1.8.0_152]
b2d497f36c to avoid
java.lang.ClassFormatError: Illegal field name
"org.apache.jorphan.gui.MenuScroller$this" in class
org/apache/jorphan/gui/MenuScroller$MenuScrollTimer
* Add Bolt protocol support
Add driver dependency
Add bolt config element and sampler
Expose cypher query parameter, execute cypher
Add temporary README on how to build for hackathon submission
* Add default example value for parameters to better guide users
* Rename configuration classes for clarity
* Apply remarks from code review and code cleanup
* Use TextArea input for query and param fields
Simple text inputs are too small
* Add bolt elements to SaveService
* Add documentation for bolt protocol
* Fix build scripts
Fix some dependencies and add the bolt protocol to the dist build
* Remove README-bolt.md to submit PR
* Fix failing test
build says: SaveService nameMap (saveservice.properties) should contain org.apache.jmeter.protocol.bolt.sampler.AbstractBoltTestElement
* Add some unit tests
* Use single line logging instead of multi line
* Avoid using lambda when consuming results to avoid performance hit
* Add documentation about connection pooling and what's included in response time
* Add neo4j driver trust-key
This resolves Bug 63801 - Add Bolt protocol support for Neo4j database
https://bz.apache.org/bugzilla/show_bug.cgi?id=63801