/**
 * Copyright 2017 Goldman Sachs.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package resources;

/**
 * Write your tests for the Stock Resource here
 */
public class StockResourceTest {

    // TODO - write a test for each method in the CompanyResource class
    // Think about both positive and negative test cases:
    // What happens if no inputs are passed?
    // What happens if the input is null?

}

@@ -725,16 +725,319 @@
 Test %7B%0D%0A
+    if(stockTicker==null %7C%7C startDate == null %7C%7C endDate == null)%0D%0A    %7B%0D%0A        //throw%0D%0A    %7D%0D%0A    if(stockTicker==%22%22 %7C%7C startDate == %22%22 %7C%7C endDate == %22%22)%0D%0A    %7B%0D%0A        //throw%0D%0A    %7D%0D%0A    if(validateStock(stockTicker, startDate, endDate) == false)%0D%0A     %7B%0D%0A            //throw an exception%0D%0A     %7D
 %0D%0A    //

Update StockResourceTest.java