// TODO(T48080142): When we wrap up all of these validation errors into something human
// friendly, this will become a build file error
@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"));
  }
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");
@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);
// 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"));
}