Skip to content
Advertisement

Validating strings with Java and NodeJS

vo.getResultFun() and cod returns 'G'

Java validation

JavaScript

NodeJS

JavaScript

isEqual

JavaScript

Why NodeJS return the callback and Java don’t throws the exception?

Advertisement

Answer

The result of this js part :

JavaScript

is false as the result of this java part:

JavaScript

So there are several options :

  • Validator.isNullUndefinedEmpty doesn’t works
  • cod is not strictly equals to ‘G’
  • The callback function is not called
Advertisement