Job { @NonNull @Api(2.0) public List<Trigger> triggers() { return mBuilder.mTriggers; } private  Job(@NonNull Builder builder); private  Job(); @Override boolean equals(Object o); @Api(2.0) @NonNull JobInfo info(); @Api(2.0) @NonNull Act action(); @Api(2.0) @NonNull Map<String, Boolean> conditionsOk(); @Api(2.0) boolean canBePersisted(); @NonNull @Api(2.0) List<Trigger> triggers(); static Job.Builder builder(@NonNull Act action); static final int NETWORK_TYPE_NONE; static final int NETWORK_TYPE_ANY; static final int NETWORK_TYPE_UNMETERED; }
@Test public void thatGetTriggers() throws IOException { Job job = givenAJobWithTrigger(mCallbackFlag); assertThat(job.triggers().size()).isEqualTo(1); }