assertNotNull (x);. Also works for int (I tried this) and presumably other primitive variables. I came across some tests in a project at ...
確定! 回上一頁