import Ġorg . junit . Assert Ċ import Ġorg . junit . Test Ċ Ċ class ĠOrientation Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġgiven _ north _ orientation _ when _ in struct ed _ to _ turn _ clock wise _ then _ orientation _ be come s _ east () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġorientation Ġ= ĠOrientation . NORTH ĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= Ġorientation . rotate Clock wise () ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals ( Orientation . EAST , Ġresult ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġgiven _ east _ orientation _ when _ in struct ed _ to _ turn _ clock wise _ then _ orientation _ be come s _ south () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġorientation Ġ= ĠOrientation . EAST ĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= Ġorientation . rotate Clock wise () ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals ( Orientation . SO UTH , Ġresult ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġgiven _ south _ orientation _ when _ in struct ed _ to _ turn _ clock wise _ then _ orientation _ be come s _ west () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġorientation Ġ= ĠOrientation . SO UTH ĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= Ġorientation . rotate Clock wise () ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals ( Orientation . WEST , Ġresult ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġgiven _ west _ orientation _ when _ in struct ed _ to _ turn _ clock wise _ then _ orientation _ be come s _ north () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġorientation Ġ= ĠOrientation . WEST ĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= Ġorientation . rotate Clock wise () ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals ( Orientation . NORTH , Ġresult ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġgiven _ north _ orientation _ when _ in struct ed _ to _ turn _ antic lock wise _ then _ orientation _ be come s _ west () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġorientation Ġ= ĠOrientation . NORTH ĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= Ġorientation . rotate Ant ic lock wise () ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals ( Orientation . WEST , Ġresult ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġgiven _ east _ orientation _ when _ in struct ed _ to _ turn _ antic lock wise _ then _ orientation _ be come s _ north () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġorientation Ġ= ĠOrientation . EAST ĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= Ġorientation . rotate Ant ic lock wise () ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals ( Orientation . NORTH , Ġresult ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġgiven _ south _ orientation _ when _ in struct ed _ to _ turn _ antic lock wise _ then _ orientation _ be come s _ east () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġorientation Ġ= ĠOrientation . SO UTH ĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= Ġorientation . rotate Ant ic lock wise () ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals ( Orientation . EAST , Ġresult ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġgiven _ west _ orientation _ when _ in struct ed _ to _ turn _ antic lock wise _ then _ orientation _ be come s _ south () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġorientation Ġ= ĠOrientation . WEST ĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= Ġorientation . rotate Ant ic lock wise () ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals ( Orientation . SO UTH , Ġresult ) ĊĠĠĠ Ġ} Ċ Ċ }