Chris2011 commented on PR #4485:
URL: https://github.com/apache/netbeans/pull/4485#issuecomment-1912662821

   It is still in draft mode but can please someone have a look into my test 
impl? @junichi11 or @matthiasblaesing. For checkHints I needed to make a change 
in the CslTestBase but I'm not 100% sure whether I needed to do this or not. 
w/o my change the problem was that the hint was never triggered due to not 
writing the correct property for hints/suggestions (L4387: 
https://github.com/apache/netbeans/pull/4485/files#diff-afbe604d62e2e9bec89e4ed0e712ad047106ed77e63c2c4030e76a54d762941fR4387).
   
   For the applyHint test, I also needed to change code within the CslTestBase 
in the method findApplicableFix (L4624: 
https://github.com/apache/netbeans/pull/4485/files#diff-afbe604d62e2e9bec89e4ed0e712ad047106ed77e63c2c4030e76a54d762941fR4624)
 from text == null to text != null. I'm also not 100% sure but the code makes 
more sense for me now. Otherwise it will always return null which breaks the 
code in applyHint (assertNotNull(fix))- This test is also funny, often it fails 
with that the expectation of the result is not the correct one but when I debug 
1min or so with F8 to jump over the code, etc. it says that the test is green 
and I don't know what's wrong here.
   
   I also added a check for Error and Warning which was missing, because if 
Current_line_warning is false it is not that the rest is always an error or an 
warning. computeHints maybe is missnamed here. It will just check for html 
version, nothing else. So all in all the code is often very frustrating to 
check and I needed days for debugging and yes it could be that I don't 
understand the code 100% that's why I'm asking for a bit of help please. Thanks 
all.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to