That's just broken, I can have any number of package private classes (or methods) that perform lower level or non-customer appropriate tasks but that are large enough or complex enough to merrit unit testing on their own.
Only testing public APIs is saying that blackboxing is the only way to test and makes whitebox testing impossible. Less testing is not more brittle. Bummer. Gary On Tue, Jun 22, 2021, 16:20 Elliotte Rusty Harold <elh...@ibiblio.org> wrote: > On Tue, Jun 22, 2021 at 7:32 PM Gary Gregory <garydgreg...@gmail.com> > wrote: > > > In addition, how is one supposed to test package private code if a test > jar > > tests a main jar where all packages are now different? > > Some projects adhere to strictly testing through the public API only. > It definitely makes tests more robust and less brittle. > > > > -- > Elliotte Rusty Harold > elh...@ibiblio.org > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org > For additional commands, e-mail: dev-h...@maven.apache.org > >