// Test for normalize @Test - public void testNormalize() { Vector3D v1 = new Vector3D( x: 20, y: 10, Vector3D v2 new Vector3D( x: 15, y: 25, z 25); z 30); Assert.assertEquals( expected:...

My @Test Nomalize needs to throw an exception, how do I code that in my Junit test?// Test for normalize<br>@Test<br>- public void testNormalize() {<br>Vector3D v1 = new Vector3D( x: 20, y: 10,<br>Vector3D v2 new Vector3D( x: 15, y: 25,<br>z 25);<br>z 30);<br>Assert.assertEquals( expected:

Extracted text: // Test for normalize @Test - public void testNormalize() { Vector3D v1 = new Vector3D( x: 20, y: 10, Vector3D v2 new Vector3D( x: 15, y: 25, z 25); z 30); Assert.assertEquals( expected: "(0.60,0.30,0.75)", v1.normalize().toString()); Assert.assertEquals( expected: "(0.36,0.60,0.72)", %3D v2.normalize().toString()); }

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here