@Test
  public void providerCannotBeUsedIfNotAssigned() throws IOException, InterruptedException {
    setupWorkspace("user_defined_providers");
    EventCollector collector = new EventCollector(EnumSet.allOf(EventKind.class));
    parser = createParser(collector);
    // TODO(T48080142): When we wrap up all of these validation errors into something human
    // friendly, this will become a build file error
    thrown.expect(Exception.class);
    thrown.expectMessage("//not_assigned:defs.bzl referenced from //not_assigned:BUCK");
    parser.getManifest(ForwardRelPath.of("not_assigned/BUCK"));
  }
@Test
  public void providerCannotBeUsedIfNotAssigned() throws IOException, InterruptedException {
    setupWorkspace("user_defined_providers");
    EventCollector collector = new EventCollector(EnumSet.allOf(EventKind.class));
    parser = createParser(collector);
   
   
    thrown.expect(Exception.class);
    thrown.expectMessage("//not_assigned:defs.bzl referenced from //not_assigned:BUCK");
    parser.getManifest(ForwardRelPath.of("not_assigned/BUCK"));
  }
@test public void providercannotbeusedifnotassigned() throws ioexception, interruptedexception { setupworkspace("user_defined_providers"); eventcollector collector = new eventcollector(enumset.allof(eventkind.class)); parser = createparser(collector); thrown.expect(exception.class); thrown.expectmessage("//not_assigned:defs.bzl referenced from //not_assigned:buck"); parser.getmanifest(forwardrelpath.of("not_assigned/buck")); }