1 /* 2 * Copyright (C) 2012 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package com.android.test.runner; 17 18 import org.junit.runner.Request; 19 import org.junit.runner.notification.Failure; 20 21 import java.util.List; 22 23 /** 24 * A data structure for holding a {@link Request} and the {@link Failure}s that occurred during its 25 * creation. 26 */ 27 public class TestRequest { 28 private final List<Failure> mFailures; 29 private final Request mRequest; 30 TestRequest(List<Failure> requestBuildFailures, Request request)31 public TestRequest(List<Failure> requestBuildFailures, Request request) { 32 mRequest = request; 33 mFailures = requestBuildFailures; 34 } 35 getFailures()36 public List<Failure> getFailures() { 37 return mFailures; 38 } 39 getRequest()40 public Request getRequest() { 41 return mRequest; 42 } 43 }