@Test public void id() throws Exception { Bundle bundle = mock(Bundle.class); BundleModel model = new BundleModel(bundle); when(bundle.getBundleId()).thenReturn(1l); assertThat(model.getId()).isEqualTo(1l); }
public long getId() { return bundle.getBundleId(); }
BundleModel { public long getId() { return bundle.getBundleId(); } }
BundleModel { public long getId() { return bundle.getBundleId(); } BundleModel(Bundle bundle); }
BundleModel { public long getId() { return bundle.getBundleId(); } BundleModel(Bundle bundle); static List<BundleModel> bundles(BundleContext context); String getState(); long getId(); String getName(); Map<String, String> getHeaders(); }
BundleModel { public long getId() { return bundle.getBundleId(); } BundleModel(Bundle bundle); static List<BundleModel> bundles(BundleContext context); String getState(); long getId(); String getName(); Map<String, String> getHeaders();  }