As title suggests, I am having problem with creating a dirtree. Currently the problematic part is:
\section{Use Cases}
\par Some entry explaining why I will be writing this dirtree.
\begin{figure}%
\dirtree{%
.1 Customer tests
.1 Connection tests
.2 Database Connection tests
.2 MailServer Connection tests
.2 Internet Connection tests
.2 CMS Connection tests
.3 Initialize Connection
.3 Close Connection
.3 Force Disconnect
.3 Simulate Internet Failure
.1 Service tests
}
\end{figure}
\par Some more sentences that will use the dirtree above
But when I try to build the file, error "Paragraph ended before \next was complete" appears, pointing to the ending bracket of the dirtree.
I am not very experienced in LaTeX so I would welcome all suggestions. Thank you very much.

