Skip to content
Advertisement

Karate karate-config.js not a js function

I’m trying use karate for e2e tests and have started with a minimal setup. I want to create some config items in karate-config.js for use in the tests but karate is reporting that file is not a js function and hence the test fails trying to get the config: This is my karate-config.js: This is my insurer.feature test: This is

Split a List of Lists with camel splitter

I have many ArrayLists created to hold the collections of separate entities to be split in to their own entities. these are added to an ArrayList then pushed to the exchange where I try to split the List of Lists. I can’t seem to split a list of lists. Tried many variations of the Splitter, with tokens, etc. after collecting

MapStruct is not generating implementation classes

I am using Mapstruct and Lombok with maven and IDEA and it is refusing to generate mappers implementation. Config: Both Mapstruct and Lombok are registered as annotations processors with idea: Implementation files does not generate when I try to build with IDEA or if I try maven clean install. I have tried changing Java from 11 to 8 and it

isEnabled() method always returns true

I want to get the list of Strings for which the check boxes are enabled. But when i use isEnabled(), it always return true even for the disabled check boxes. And in output i get the list of all Strings present in that field. Below is the code which i have written for it:- HTML code is as below:- For

Why am I getting IllegalArgumentException while using copyRowFrom(…) in XSSFRow?

I’m trying to use copyRowFrom(…); to copy the first row of a spreadsheet to the first row of a new XSSFSheet but something is not working right. You can find the XSSFRow class and the method here: https://github.com/apache/poi/blob/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRow.java#L581 I’m getting IllegalArgumentException(“amountToMove must not be zero”) from FormulaShifter.java: https://github.com/apache/poi/blob/trunk/src/java/org/apache/poi/ss/formula/FormulaShifter.java#L80 It seems that the problem is at line 623 of XSSFRow where

Casting to array type using reflection

I find myself in a situation where it seems I would need to be able to cast an Object that is an array of some other, non-primitive type, into its concrete array type, to pass to a generic. The same thing is trivial to get to work with non-array types: desiredType.cast(o) yields an object of the correct type. Would someone

Advertisement