Want to look into it?
~ Mike
--
~ Mike Nereson
Mike Nereson schrieb:
> Yep. Sounds like a bug. Thanks for tracking that down.
>
> Want to look into it?
>
yeah I'm just trying to checkout the source code
--
Prof. Dr. Axel Böttcher
Fakultät für Informatik und Mathematik
Hochschule für Angewandte Wissenschaften - FH MünchenLothstr. 34, 80335 München
Tel. +49(0)89 1265-3725 Fax: +49(0)89 1265-3780
URL: http://www.cs.fhm.edu/~boettcha/
------------------------------------------------------------------------------
Thanks for your efforts.
~ Mike
--
~ Mike Nereson
Well here is what I changed:
in the Ctor of AbstractArchitectureRulesConfigurationTest one transfer
is missing:
if (configurationFileName != null &&
configurationFileName.length() > 0) {
configurationFactory = new
DigesterConfigurationFactory(configurationFileName);
configuration.getRules().addAll(configurationFactory.getRules());
configuration.getSources().addAll(configurationFactory.getSources());
configuration.setDoCyclicDependencyTest(configurationFactory.doCyclicDependencyTest());//NEW
LINE
}
THATS JUST to have a good test for what is going on here:
In class ArchitectureTest there is a method named as a Ctor. Should be a
Ctor.
DELETE configuration.setDoCyclicDependencyTest(false); in that Ctor and
modify:
public void testArchitecture() {
/**
* Finally, run the test via doTest(). If any rules are broken,
or if
* the configuration can not be loaded properly, then the
appropriate
* Exception will be thrown.
*/
try {
assertTrue(doTests());
fail("Cycles have not been detected");
} catch (final CyclicRedundancyException e) {
e.printStackTrace();
final String message = e.getMessage();
assertTrue(message.indexOf("test.com.seventytwomiles.services") > -1);
assertTrue(message.indexOf("test.com.seventytwomiles.model")
> -1);
assertTrue(message.indexOf("test.com.seventytwomiles.dao.hibernate") > -1);
}
final Configuration configuration = getConfiguration();
configuration.setDoCyclicDependencyTest(false);
assertTrue(doTests());
configuration.getSources().clear();
configuration.getSources().add(new
SourceDirectory("target\\classes", true));
assertTrue(doTests());
configuration.getSources().clear();
configuration.getSources().add(new
SourceDirectory("target\\test-classes", true));
try {
assertTrue(doTests());
} catch (final CyclicRedundancyException e) {
e.printStackTrace();
final String message = e.getMessage();
assertTrue(message.indexOf("test.com.seventytwomiles.services") > -1);
assertTrue(message.indexOf("test.com.seventytwomiles.model")
> -1);
assertTrue(message.indexOf("test.com.seventytwomiles.dao.hibernate") > -1);
}
}
Mike Nereson schrieb:
Thanks for writing the tests too.
I can make the release. I have written up this txt file on how to make
a release. Its not perfect and I find a missing step every time I use
it, but it helps me not forget things.
<http://architecturerules.googlecode.com/svn/trunk/src/main/docs/index.txt>
I need to make the release soon. I fixed this rather important issue a
week or two ago
<http://code.google.com/p/architecturerules/issues/detail?id=24> This
issue prevented the app from working on any hardware that is not a
windows box.
Thanks again. Let me know what address to use.
--
~ Mike Nereson
--
~ Mike Nereson
Thanks Axel. Did you ever end talking about this in your architecture lecture?
~ Mike
--
~ Mike Nereson