input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
test02 ( ) { com . itextpdf . kernel . pdf . PdfDocument pdfDocument = new com . itextpdf . kernel . pdf . PdfDocument ( new com . itextpdf . kernel . pdf . PdfReader ( ( ( com . itextpdf . kernel . pdf . canvas . parser . BidiTextExtractionTest . sourceFolder ) + "in02.pdf" ) ) ) ; final java . lang . String [ ] expec...
org . junit . Assert . assertEquals ( expectedText [ i ] , actualText )
testNewDocumentIsCreatedForEachWsdlRequest ( ) { org . apache . cxf . jaxws . JaxWsServerFactoryBean factory = new org . apache . cxf . jaxws . JaxWsServerFactoryBean ( ) ; factory . setServiceBean ( new org . apache . cxf . systest . jaxws . WsdlGetUtilsTest . StuffImpl ( ) ) ; factory . setAddress ( ( ( "http://local...
org . junit . Assert . assertFalse ( ( doc == doc2 ) )
shouldReturnIdImmediatelyAfterRecordId ( ) { org . neo4j . unsafe . impl . batchimport . store . PrepareIdSequence idSequence = new org . neo4j . unsafe . impl . batchimport . store . SecondaryUnitPrepareIdSequence ( ) ; org . neo4j . kernel . impl . store . id . IdSequence actual = mock ( org . neo4j . kernel . impl ....
org . junit . Assert . assertEquals ( ( 10 + 1 ) , nextRecordId )
testGetAllProgramsInAttributesAndDataElements ( ) { org . hisp . dhis . program . ProgramTrackedEntityAttributeDimensionItem ptaA = new org . hisp . dhis . program . ProgramTrackedEntityAttributeDimensionItem ( prA , atA ) ; org . hisp . dhis . program . ProgramDataElementDimensionItem pdeA = new org . hisp . dhis . pr...
org . junit . Assert . assertEquals ( expected , params . getProgramsInAttributesAndDataElements ( ) )
testTimeoffset ( ) { final com . amazonaws . AmazonWebServiceClientTest . AmazonTestClient client = new com . amazonaws . AmazonWebServiceClientTest . AmazonTestClient ( ) ; client . withTimeOffset ( 100 ) ; "<AssertPlaceHolder>" ; } getTimeOffset ( ) { return timeOffset ; }
org . junit . Assert . assertEquals ( client . getTimeOffset ( ) , 100 )
create_by_id_right_after_entity_creation_should_not_throw_exception ( ) { @ com . artemis . annotations . Wire ( injectInherited = true ) class TestSystem extends com . artemis . ComponentMapperTest . BasicSystem { @ com . artemis . Override protected void process ( com . artemis . Entity e ) { final com . artemis . En...
org . junit . Assert . assertNotNull ( c1 )
handle_no_such_function_error_from_server ( ) { net . gjerull . etherpad . client . EPLiteConnection connection = new net . gjerull . etherpad . client . EPLiteConnection ( "http://example.com/" , "apikey" , net . gjerull . etherpad . client . EPLiteConnectionTest . API_VERSION , net . gjerull . etherpad . client . EPL...
org . junit . Assert . assertEquals ( "no<sp>such<sp>function" , e . getMessage ( ) )
testIsHideScrollbars ( ) { classUnderTest . setHideScrollbars ( true ) ; "<AssertPlaceHolder>" ; } isHideScrollbars ( ) { return _hideScrollBars ; }
org . junit . Assert . assertEquals ( true , classUnderTest . isHideScrollbars ( ) )
testAddGoal ( ) { phase . addGoal ( goal ( "goal" , 2000 , 1000 ) ) ; "<AssertPlaceHolder>" ; } getGoals ( ) { return goals ; }
org . junit . Assert . assertEquals ( phase . getGoals ( ) . size ( ) , 1 )
loadsEmptyMap ( ) { org . jmxtrans . agent . properties . NoPropertiesSourcePropertiesLoader loader = new org . jmxtrans . agent . properties . NoPropertiesSourcePropertiesLoader ( ) ; java . util . Map < java . lang . String , java . lang . String > loadedProperties = loader . loadProperties ( ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertThat ( loadedProperties . size ( ) , equalTo ( 0 ) )
listenersAreCalledCorrectlyInTheFaceOfFailures ( ) { org . junit . runner . JUnitCore core = new org . junit . runner . JUnitCore ( ) ; final java . util . List < org . junit . runner . notification . Failure > failures = new java . util . ArrayList < org . junit . runner . notification . Failure > ( ) ; core . addList...
org . junit . Assert . assertEquals ( 1 , failures . size ( ) )
evaluateResource ( ) { org . xwiki . webjars . internal . WebJarsResourceReference reference = new org . xwiki . webjars . internal . WebJarsResourceReference ( "wiki:wiki" , java . util . Arrays . asList ( "angular" , "2.1.11" , "angular.js" ) ) ; reference . addParameter ( "evaluate" , true ) ; java . io . ByteArrayI...
org . junit . Assert . assertEquals ( "evaluated<sp>content" , this . response . getOutputStream ( ) . toString ( ) )
testIntervalActionEndCalculationWithInterval ( ) { final com . liferay . portal . kernel . interval . IntervalActionProcessor < java . lang . Void > intervalActionProcessor = new com . liferay . portal . kernel . interval . IntervalActionProcessor ( 125 , 200 ) ; intervalActionProcessor . setPerformIntervalActionMethod...
org . junit . Assert . assertEquals ( 125 , _count . get ( ) )
testSerialization ( ) { org . jfree . chart . plot . ValueMarker m1 = new org . jfree . chart . plot . ValueMarker ( 25.0 ) ; org . jfree . chart . plot . ValueMarker m2 = ( ( org . jfree . chart . plot . ValueMarker ) ( org . jfree . chart . TestUtilities . serialised ( m1 ) ) ) ; "<AssertPlaceHolder>" ; } serialised ...
org . junit . Assert . assertEquals ( m1 , m2 )
testCase91 ( ) { org . evosuite . testcase . DefaultTestCase tc = buildTestCase91 ( ) ; java . util . List < org . evosuite . symbolic . BranchCondition > branch_conditions = executeTest ( tc ) ; "<AssertPlaceHolder>" ; } size ( ) { return theTest . size ( ) ; }
org . junit . Assert . assertEquals ( 6 , branch_conditions . size ( ) )
useDefault ( ) { java . util . Map < java . lang . String , java . lang . Object > map = java . util . Collections . emptyMap ( ) ; org . neo4j . graphalgo . core . ProcedureConfiguration procedureConfiguration = org . neo4j . graphalgo . core . ProcedureConfiguration . create ( map ) ; java . lang . String value = pro...
org . junit . Assert . assertEquals ( "defaultValue" , value )
complexTest1 ( ) { java . util . Calendar cal = new java . util . GregorianCalendar ( ) ; cal . set ( Calendar . HOUR_OF_DAY , 9 ) ; cal . add ( Calendar . DAY_OF_YEAR , ( - 1 ) ) ; setSubHourFieldsZero ( cal ) ; java . util . Date startDate = cal . getTime ( ) ; long [ ] result = this . parseTimes ( "noon<sp>yesterday...
org . junit . Assert . assertEquals ( startDate . getTime ( ) , start )
test_ips_pools_get ( ) { com . sendgrid . SendGrid sg = new com . sendgrid . SendGrid ( "SENDGRID_API_KEY" , true ) ; sg . setHost ( "localhost:4010" ) ; sg . addRequestHeader ( "X-Mock" , "200" ) ; com . sendgrid . Request request = new com . sendgrid . Request ( ) ; request . setMethod ( Method . GET ) ; request . se...
org . junit . Assert . assertEquals ( 200 , response . getStatusCode ( ) )
givenAndroidManifestWithoutInstrumentationThenInstrumentationRunnerIsNotFound ( ) { final java . net . URL url = this . getClass ( ) . getResource ( "AndroidManifestWithoutInstrumentation.xml" ) ; final java . net . URI uri = url . toURI ( ) ; final java . io . File file = new java . io . File ( uri ) ; final java . la...
org . junit . Assert . assertNull ( foundInstrumentationRunner )
testXPathHelperWithDocument ( ) { try { org . w3c . dom . Document document = getDocument ( ddf . catalog . impl . XPathHelperTest . INPUT_FILE ) ; ddf . util . XPathHelper xHelper = new ddf . util . XPathHelper ( document ) ; org . w3c . dom . NodeList nodeList = ( ( org . w3c . dom . NodeList ) ( xHelper . evaluate (...
org . junit . Assert . assertEquals ( 6 , nodeList . getLength ( ) )
testSerialization ( ) { org . jfree . chart . renderer . xy . StackedXYAreaRenderer r1 = new org . jfree . chart . renderer . xy . StackedXYAreaRenderer ( ) ; r1 . setShapePaint ( Color . RED ) ; r1 . setShapeStroke ( new java . awt . BasicStroke ( 1.23F ) ) ; org . jfree . chart . renderer . xy . StackedXYAreaRenderer...
org . junit . Assert . assertEquals ( r1 , r2 )
testOnCutSelectionCommandExecuted ( ) { pasteSelectionSessionCommand . bind ( session ) ; pasteSelectionSessionCommand . listen ( statusCallback ) ; pasteSelectionSessionCommand . onCutSelectionCommandExecuted ( new org . kie . workbench . common . stunner . core . client . session . command . impl . CutSelectionSessio...
org . junit . Assert . assertTrue ( command . isEnabled ( ) )
runAsUserTest ( ) { java . util . concurrent . Callable < java . lang . String > callable = ( ( java . util . concurrent . Callable < java . lang . String > ) ( mock ( java . util . concurrent . Callable . class ) ) ) ; when ( callable . call ( ) ) . thenReturn ( org . pentaho . platform . engine . security . SecurityH...
org . junit . Assert . assertEquals ( org . pentaho . platform . engine . security . SecurityHelperTest . CALLABLE_RETURNED_VALUE_OK , runningResult )
testObtainingInjectionTarget ( javax . enterprise . inject . spi . BeanManager ) { javax . enterprise . inject . spi . InjectionTarget < org . jboss . weld . tests . injectionTarget . InjectionTargetTest . NonStaticInnerClass > it = beanManager . getInjectionTargetFactory ( beanManager . createAnnotatedType ( org . jbo...
org . junit . Assert . assertNotNull ( instance . getEvent ( ) )
testLogFilesAreArchived ( ) { org . apache . hadoop . hbase . master . TestSplitLogManager . LOG . info ( "testLogFilesAreArchived" ) ; slm = new org . apache . hadoop . hbase . master . SplitLogManager ( master , conf ) ; org . apache . hadoop . fs . FileSystem fs = org . apache . hadoop . hbase . master . TestSplitLo...
org . junit . Assert . assertFalse ( fs . exists ( logDirPath ) )
testGetTemplateFile ( ) { when ( org . oscm . app . dao . TemplateFileDAOTest . query . getSingleResult ( ) ) . thenReturn ( org . oscm . app . dao . TemplateFileDAOTest . tf ) ; org . oscm . app . domain . TemplateFile result = org . oscm . app . dao . TemplateFileDAOTest . tfDAO . getTemplateFileByUnique ( "file" , "...
org . junit . Assert . assertEquals ( org . oscm . app . dao . TemplateFileDAOTest . tf , result )
doesOrganizationForTenantExist ( ) { runTX ( new java . util . concurrent . Callable < java . lang . Void > ( ) { @ org . oscm . tenant . dao . Override public org . oscm . tenant . dao . Void call ( ) throws org . oscm . tenant . dao . Exception { bean . addTenant ( org . oscm . tenant . assembler . TenantAssembler . ...
org . junit . Assert . assertTrue ( ( count == 1L ) )
shouldReturnFalseWhenSchemaHasEmptyValidatorEdgeFilters ( ) { final uk . gov . gchq . gaffer . store . schema . Schema schema = new uk . gov . gchq . gaffer . store . schema . Schema . Builder ( ) . edge ( TestGroups . EDGE , new uk . gov . gchq . gaffer . store . schema . SchemaEdgeDefinition . Builder ( ) . validator...
org . junit . Assert . assertFalse ( result )
testNoneMatchWithFalseResult ( ) { boolean match = com . annimon . stream . Stream . range ( 0 , 10 ) . noneMatch ( com . annimon . stream . Functions . remainder ( 2 ) ) ; "<AssertPlaceHolder>" ; } remainder ( int ) { return new com . annimon . stream . Predicate < java . lang . Integer > ( ) { @ com . annimon . strea...
org . junit . Assert . assertFalse ( match )
testDoForwardWithMementoWithHash ( ) { final org . apache . jena . rdf . model . Resource resource = createResource ( "http://localhost:8080/some/container/fcr:versions/20180315180915#test" ) ; when ( session . getNode ( "/container/fedora:timemap/20180315180915/#/test" ) ) . thenReturn ( node ) ; final org . fcrepo . ...
org . junit . Assert . assertEquals ( node , resultNode )
testRoundtrip ( ) { final java . io . StringWriter out = new java . io . StringWriter ( ) ; final leap . lang . csv . CSVPrinter printer = new leap . lang . csv . CSVPrinter ( out , CSVFormat . DEFAULT ) ; final java . lang . String input = "a,b,c\r\n1,2,3\r\nx,y,z\r\n" ; for ( final leap . lang . csv . CSVRecord recor...
org . junit . Assert . assertEquals ( input , out . toString ( ) )
shouldContainsAllGivenDoesNotContainAll ( ) { java . util . SortedSet < java . lang . Double > set = new uk . co . webamoeba . mockito . collections . util . LinkedSortedSet < java . lang . Double > ( ) ; java . lang . Double elementOne = 0.1 ; java . lang . Double elementTwo = 12.2 ; set . addAll ( java . util . Array...
org . junit . Assert . assertFalse ( containsAll )
testWithRandomParams ( ) { java . lang . String random = ( ( ( ( ( ( ( ( ( ( ( ( ( "&su=" 0 + ( java . net . URLEncoder . encode ( "http://subject1" , com . atomgraph . core . riot . lang . RDFPostReaderTest . ENC ) ) ) + "&su=" 3 ) + "&pu=" ) + ( java . net . URLEncoder . encode ( "http://predicate1" , com . atomgraph...
org . junit . Assert . assertTrue ( randomParsed . isEmpty ( ) )
postgresqlServiceDownIsDetected ( ) { "<AssertPlaceHolder>" ; } isRDBMSRunning ( ) { return dbAdmDao . isRDBMSRunning ( ) ; }
org . junit . Assert . assertFalse ( dbAdmDao . isRDBMSRunning ( ) )
testReadBlockGroupFailByCheckSumMultiBlocks2 ( ) { java . nio . ByteBuffer blocks = java . nio . ByteBuffer . allocate ( 110 ) ; for ( int i = 0 ; i < 2 ; i ++ ) { blocks . put ( new byte [ ] { 34 , 5 , 5 , 66 } ) ; while ( ( blocks . remaining ( ) ) > ( 110 - ( ( i + 1 ) * 10 ) ) ) { blocks . put ( ( ( byte ) ( 0 ) ) ...
org . junit . Assert . assertArrayEquals ( content , readBlockGroup . getContent ( ) )
testGetAll ( ) { oAuth2ClientService . saveOAuth2Client ( clientA ) ; oAuth2ClientService . saveOAuth2Client ( clientB ) ; oAuth2ClientService . saveOAuth2Client ( clientC ) ; java . util . Collection < org . hisp . dhis . security . oauth2 . OAuth2Client > all = oAuth2ClientService . getOAuth2Clients ( ) ; "<AssertPla...
org . junit . Assert . assertEquals ( 3 , all . size ( ) )
handleAsyncUpdateSubscription_Pending ( ) { org . oscm . domobjects . Subscription subscription = givenSubscription ( SubscriptionStatus . PENDING , initialProduct ) ; bean . handleAsyncUpdateSubscription ( subscription , targetProduct ) ; verify ( as , never ( ) ) . asyncModifySubscription ( any ( org . oscm . domobje...
org . junit . Assert . assertEquals ( SubscriptionStatus . PENDING , subscription . getStatus ( ) )
testLastRequestId ( ) { ormTestHelper . createStageCommands ( ) ; org . apache . ambari . server . orm . dao . RequestDAO requestDAO = injector . getInstance ( org . apache . ambari . server . orm . dao . RequestDAO . class ) ; org . apache . ambari . server . orm . entities . RequestEntity requestEntity = requestDAO ....
org . junit . Assert . assertEquals ( 1L , stageDAO . getLastRequestId ( ) )
testServiceBuilderProjectName ( ) { if ( shouldSkipBundleTests ( ) ) return ; final com . liferay . ide . project . core . model . NewLiferayPluginProjectOp op = newProjectOp ( "test-sb" ) ; op . setPluginType ( PluginType . servicebuilder ) ; op . setUseDefaultLocation ( true ) ; final org . eclipse . core . resources...
org . junit . Assert . assertEquals ( expectedProjectName , actualProjectName )
testMaxRows ( ) { org . apache . metamodel . schema . Table table = org . apache . metamodel . cassandra . CassandraDataContextTest . dc . getDefaultSchema ( ) . getTableByName ( org . apache . metamodel . cassandra . CassandraDataContextTest . testTableName ) ; org . apache . metamodel . query . Query query = new org ...
org . junit . Assert . assertEquals ( 2 , tableModel . getRowCount ( ) )
testDIRSERVER_1183 ( ) { javax . naming . ldap . LdapContext ctx = ( ( javax . naming . ldap . LdapContext ) ( getWiredContext ( getLdapServer ( ) ) . lookup ( org . apache . directory . server . operations . add . AddIT . BASE ) ) ) ; javax . naming . directory . Attributes attrs = new javax . naming . directory . Bas...
org . junit . Assert . assertNotNull ( jimBeanCtx )
testInterfaceDefaultNull ( ) { org . skife . config . TestCollections . EmptyInterfaceDefaultNull ec = cof . build ( org . skife . config . TestCollections . EmptyInterfaceDefaultNull . class ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; }
org . junit . Assert . assertNull ( ec . getValue ( ) )
testIsComplete_InvalidRepositoryUrl ( ) { final org . kie . workbench . common . screens . examples . model . ExampleRepository repository = new org . kie . workbench . common . screens . examples . model . ExampleRepository ( "cheese" ) ; model . setSelectedRepository ( repository ) ; final org . uberfire . client . c...
org . junit . Assert . assertFalse ( repository . isUrlValid ( ) )
testNoUnConvertApos ( ) { java . lang . String testString = "'" ; "<AssertPlaceHolder>" ; } unescapeToXML ( java . lang . String ) { if ( com . github . bordertech . wcomponents . util . Util . empty ( input ) ) { return input ; } java . lang . String encoded = com . github . bordertech . wcomponents . WebUtilities . d...
org . junit . Assert . assertEquals ( testString , com . github . bordertech . wcomponents . util . HtmlToXMLUtil . unescapeToXML ( testString ) )
testFindByPrimaryKeyExisting ( ) { com . liferay . change . tracking . model . CTEntry newCTEntry = addCTEntry ( ) ; com . liferay . change . tracking . model . CTEntry existingCTEntry = _persistence . findByPrimaryKey ( newCTEntry . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKey ( ) { return _amImageEnt...
org . junit . Assert . assertEquals ( existingCTEntry , newCTEntry )
testFindByPrimaryKeyExisting ( ) { com . liferay . document . library . kernel . model . DLFileEntry newDLFileEntry = addDLFileEntry ( ) ; com . liferay . document . library . kernel . model . DLFileEntry existingDLFileEntry = _persistence . findByPrimaryKey ( newDLFileEntry . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertEquals ( existingDLFileEntry , newDLFileEntry )
shouldInstrumentIfElseNoBraceTry ( ) { java . lang . String source = "" + ( ( ( ( ( ( "if<sp>(condition)\n" + "<sp>f1();\n" 6 ) + "<sp>f1();\n" 4 ) + "<sp>f2()\n" ) + "<sp>f1();\n" 9 ) + "<sp>f3(ex);\n" ) + "<sp>}<sp>catch<sp>(ex)<sp>{\n" 0 ) ; java . lang . String instrumentedSource = sourceProcessor . instrumentSourc...
org . junit . Assert . assertEquals ( expectedSource , instrumentedSource )
constructorTest ( ) { int n = 10 ; org . openscience . cdk . group . DisjointSetForest forest = new org . openscience . cdk . group . DisjointSetForest ( n ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( forest )
shouldGetSessionIdFromUnderlyingSession ( ) { java . lang . String expectedSessionId = "FOO_SESSION_ID" ; when ( mockSession . getId ( ) ) . thenReturn ( expectedSessionId ) ; when ( mockRouteContext . getSession ( ) ) . thenReturn ( mockSession ) ; when ( mockPippoWebContext . getRouteContext ( ) ) . thenReturn ( mock...
org . junit . Assert . assertThat ( sessionStore . getOrCreateSessionId ( mockPippoWebContext ) , org . hamcrest . core . Is . is ( expectedSessionId ) )
testGetEmailNull ( ) { ddf . security . Subject subject = getSubjectWithAttributes ( java . util . Collections . emptyMap ( ) ) ; "<AssertPlaceHolder>" ; } getEmailAddress ( javax . security . auth . x500 . X500Principal ) { return ddf . security . SubjectUtils . getExtendedCertAttribute ( principal , BCStyle . EmailAd...
org . junit . Assert . assertNull ( ddf . security . SubjectUtils . getEmailAddress ( subject ) )
testGetNumBands ( ) { "<AssertPlaceHolder>" ; } getNumBands ( ) { return 0 ; }
org . junit . Assert . assertEquals ( 4 , metadata . getNumBands ( ) )
testNoHistoryConfiguration ( ) { com . mvp4g . rebind . config . loader . annotation . List < com . google . gwt . core . ext . typeinfo . JClassType > annotedClasses = new com . mvp4g . rebind . config . loader . annotation . ArrayList < com . google . gwt . core . ext . typeinfo . JClassType > ( ) ; annotedClasses . ...
org . junit . Assert . assertNull ( historyConfig )
testExtractMonthTimestamp ( ) { java . lang . String sqlText = ( "select<sp>ts,<sp>EXTRACT(MONTH<sp>FROM<sp>ts)<sp>as<sp>\"MONTH\"<sp>from<sp>" + ( com . splicemachine . derby . utils . SpliceDateFunctionsIT . tableWatcherI ) ) + "<sp>order<sp>by<sp>ts" ; try ( com . splicemachine . derby . utils . ResultSet rs = metho...
org . junit . Assert . assertEquals ( ( ( "\n" + sqlText ) + "\n" ) , expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) )
loadTsl_whenCacheIsExpired_shouldDownloadNewTsl ( ) { this . configuration = new org . digidoc4j . Configuration ( Configuration . Mode . TEST ) ; this . configuration . setTslCacheExpirationTime ( 500L ) ; this . createTSLLoader ( ) ; long lastModified = this . refreshTSLAndGetCacheLastModificationTime ( ) ; org . dig...
org . junit . Assert . assertTrue ( ( lastModified < newModificationTime ) )
isMacOrWinOrLinux ( ) { gov . nasa . ensemble . common . logging . LogUtil . debug ( ( ( org . eclipse . core . runtime . Platform . getOS ( ) ) + "<sp>is<sp>our<sp>OS" ) ) ; gov . nasa . ensemble . common . logging . LogUtil . debug ( ( "Mac<sp>" + ( gov . nasa . ensemble . common . CommonUtils . isOSMac ( ) ) ) ) ; g...
org . junit . Assert . assertTrue ( ( ( ( gov . nasa . ensemble . common . CommonUtils . isOSLinux ( ) ) || ( gov . nasa . ensemble . common . CommonUtils . isOSMac ( ) ) ) || ( gov . nasa . ensemble . common . CommonUtils . isOSWindows ( ) ) ) )
fillAllFields_confUrl_CUSTOMER_TEMPLATE ( ) { org . oscm . domobjects . Product customerTemplate = product . copyForCustomer ( supplier ) ; org . oscm . internal . vo . VOService service = new org . oscm . internal . vo . VOService ( ) ; org . oscm . serviceprovisioningservice . assembler . ProductAssembler . fillAllFi...
org . junit . Assert . assertEquals ( product . getConfiguratorUrl ( ) , service . getConfiguratorUrl ( ) )
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . document . library . opener . model . DLOpenerFileEntryReference . class , _dynamicQueryClassLoader ) ; d...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testIsSupportsEmbeddedPortletsWithTypePanel ( ) { _layout . setType ( LayoutConstants . TYPE_PANEL ) ; "<AssertPlaceHolder>" ; } isSupportsEmbeddedPortlets ( ) { return model . isSupportsEmbeddedPortlets ( ) ; }
org . junit . Assert . assertTrue ( _layout . isSupportsEmbeddedPortlets ( ) )
bitmapOfTest ( ) { int [ ] cuiRelsArray = new int [ 1024 ] ; for ( int k = 0 ; k < ( cuiRelsArray . length ) ; ++ k ) { cuiRelsArray [ k ] = k ; } org . roaringbitmap . RoaringBitmap rr1 = org . roaringbitmap . RoaringBitmap . bitmapOf ( cuiRelsArray ) ; int [ ] back = rr1 . toArray ( ) ; "<AssertPlaceHolder>" ; } toAr...
org . junit . Assert . assertArrayEquals ( cuiRelsArray , back )
testChannel ( ) { org . apache . cayenne . MockDataChannel channel = new org . apache . cayenne . MockDataChannel ( ) ; org . apache . cayenne . CayenneContext context = new org . apache . cayenne . CayenneContext ( channel ) ; "<AssertPlaceHolder>" ; } getChannel ( ) { return channel ; }
org . junit . Assert . assertSame ( channel , context . getChannel ( ) )
inMemoryBlob ( ) { org . apache . jackrabbit . oak . api . Blob b = new org . apache . jackrabbit . oak . plugins . memory . ArrayBasedBlob ( "hello<sp>world" . getBytes ( ) ) ; java . lang . String value = serializer . serialize ( b ) ; org . apache . jackrabbit . oak . api . Blob b2 = serializer . deserialize ( value...
org . junit . Assert . assertTrue ( org . apache . jackrabbit . oak . plugins . memory . AbstractBlob . equal ( b , b2 ) )
testUser ( ) { java . lang . String dockerFile = new io . fabric8 . maven . docker . assembly . DockerFileBuilder ( ) . assemblyUser ( "jboss:jboss:jboss" ) . user ( "bob" ) . add ( "a" , "a/nested" ) . add ( "b" , "b/deeper/nested" ) . content ( ) ; java . lang . String EXPECTED_REGEXP = "USER<sp>bob$" ; java . util ....
org . junit . Assert . assertTrue ( pattern . matcher ( dockerFile ) . find ( ) )
getStatusGets ( ) { final byte [ ] actualData = new byte [ ] { } ; com . microsoft . azure . sdk . iot . device . transport . IotHubTransportMessage msg = new com . microsoft . azure . sdk . iot . device . transport . IotHubTransportMessage ( actualData , com . microsoft . azure . sdk . iot . device . MessageType . DEV...
org . junit . Assert . assertEquals ( status , "12" )
testInsertParentChild ( ) { com . jmethods . catatumbo . entities . ParentEntity parent = new com . jmethods . catatumbo . entities . ParentEntity ( ) ; parent . setField1 ( "I'm<sp>parent!" ) ; parent = com . jmethods . catatumbo . EntityManagerTest . em . insert ( parent ) ; com . jmethods . catatumbo . entities . Ch...
org . junit . Assert . assertTrue ( ( ( child . getParentKey ( ) . equals ( parent . getKey ( ) ) ) && ( grandchild . getParentKey ( ) . equals ( child . getKey ( ) ) ) ) )
notEqualsNull ( ) { final com . lightboxtechnologies . nsrl . OSData osd = new com . lightboxtechnologies . nsrl . OSData ( com . lightboxtechnologies . nsrl . OSDataTest . code , com . lightboxtechnologies . nsrl . OSDataTest . name , com . lightboxtechnologies . nsrl . OSDataTest . version , com . lightboxtechnologie...
org . junit . Assert . assertFalse ( osd . equals ( null ) )
decrementByValue ( ) { counter . reset ( ) ; counter . decrementByValue ( 2 ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; }
org . junit . Assert . assertEquals ( counter . getValue ( ) , ( - 2 ) )
testIsRequestCounterValid_falseWithMissingParameter ( ) { org . eclipse . rap . rwt . internal . lifecycle . RequestCounter . getInstance ( ) . nextRequestId ( ) ; org . eclipse . rap . rwt . internal . protocol . RequestMessage requestMessage = new org . eclipse . rap . rwt . testfixture . internal . TestMessage ( ) ;...
org . junit . Assert . assertFalse ( valid )
whenAddDuplicateInSetThatOnlyUniqueValueSetCanHave ( ) { ru . szhernovoy . set . SimpleSet < java . lang . String > container = new ru . szhernovoy . set . SimpleSet ( 10 ) ; container . add ( "first" ) ; container . add ( "second" ) ; container . add ( "first" ) ; java . util . Iterator < java . lang . String > iter =...
org . junit . Assert . assertThat ( control , org . hamcrest . core . Is . is ( "second" ) )
decodeBooleanBytesIntoObject ( ) { stubValueMeta . setType ( 4 ) ; byte i = 1 ; java . lang . Object str = stubValueMeta . decodeColumnValue ( org . apache . hadoop . hbase . util . Bytes . toBytes ( i ) ) ; "<AssertPlaceHolder>" ; } toBytes ( double ) { return hBaseBytesUtilShim . toBytes ( var1 ) ; }
org . junit . Assert . assertNotNull ( str )
testListTypes ( ) { "<AssertPlaceHolder>" ; } listTypes ( ) { org . hibernate . Criteria criteria = currentSession ( ) . createCriteria ( uk . ac . bbsrc . tgac . miso . core . data . PartitionQCType . class ) ; @ uk . ac . bbsrc . tgac . miso . persistence . impl . SuppressWarnings ( "unchecked" ) java . util . List <...
org . junit . Assert . assertTrue ( ( ( dao . listTypes ( ) . size ( ) ) > 0 ) )
shouldMatchPresentElements ( ) { com . redhat . darcy . ui . matchers . ElementText < com . redhat . darcy . ui . api . elements . Text > matcher = new com . redhat . darcy . ui . matchers . ElementText ( org . hamcrest . Matchers . anything ( ) ) ; com . redhat . darcy . ui . api . elements . Text mockText = mock ( co...
org . junit . Assert . assertTrue ( matcher . matches ( mockText ) )
testAutoIncrementedField ( ) { java . util . Date currentTime = new java . util . Date ( ) ; java . lang . String serviceName = "MapReduce1" ; java . lang . String clusterName = "test_cluster1" ; createService ( currentTime , serviceName , clusterName ) ; org . apache . ambari . server . orm . entities . ClusterService...
org . junit . Assert . assertNull ( clusterServiceDAO . findByClusterAndServiceNames ( clusterName , serviceName ) )
setFieldValueNullWithEmptyStringsDiffersFromNullTest ( ) { org . pentaho . di . trans . steps . nullif . NullIfMeta . Field field = new org . pentaho . di . trans . steps . nullif . NullIfMeta . Field ( ) ; java . lang . System . setProperty ( Const . KETTLE_EMPTY_STRING_DIFFERS_FROM_NULL , "Y" ) ; field . setFieldValu...
org . junit . Assert . assertEquals ( "" , field . getFieldValue ( ) )
testWithoutChgrp ( ) { final org . apache . oozie . fluentjob . api . action . FSActionBuilder builder = getBuilderInstance ( ) ; for ( final org . apache . oozie . fluentjob . api . action . Chgrp chgrp : org . apache . oozie . fluentjob . api . action . TestFSActionBuilder . CHGRPS ) { builder . withChgrp ( chgrp ) ;...
org . junit . Assert . assertEquals ( expectedChgrps , fsAction . getChgrps ( ) )
testRemoveLastSubscription_AllowingOnbehalf ( ) { java . lang . String subId = java . lang . Long . toString ( java . lang . System . currentTimeMillis ( ) ) ; final org . oscm . internal . vo . VOSubscription sub = subMgmt . subscribeToService ( org . oscm . test . data . Subscriptions . createVOSubscription ( subId )...
org . junit . Assert . assertNull ( getOrganizationReference ( sourceOrganization , targetOrganization ) )
testCopy ( ) { byte [ ] bytes = "deadbeefdeadbeef" . getBytes ( ) ; java . io . ByteArrayOutputStream baos = new java . io . ByteArrayOutputStream ( ) ; com . spotify . sparkey . Util . copy ( bytes . length , new java . io . ByteArrayInputStream ( bytes ) , baos , new byte [ 5 ] ) ; "<AssertPlaceHolder>" ; } copy ( lo...
org . junit . Assert . assertArrayEquals ( bytes , baos . toByteArray ( ) )
concat_boolean_arrays ( ) { boolean [ ] booleanArray1 = new boolean [ ] { true , false } ; boolean [ ] booleanArray2 = new boolean [ ] { true , false } ; boolean [ ] concatedArray = com . google . common . primitives . Booleans . concat ( booleanArray1 , booleanArray2 ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 4 , concatedArray . length )
shouldCountCustomMethodWithLike ( ) { java . lang . String documentId = randomNumeric ( 5 ) ; org . springframework . data . elasticsearch . entities . SampleEntity sampleEntity = new org . springframework . data . elasticsearch . entities . SampleEntity ( ) ; sampleEntity . setId ( documentId ) ; sampleEntity . setTyp...
org . junit . Assert . assertThat ( count , is ( equalTo ( 1L ) ) )
testEndsWithZeroesSmallerThanBufferSize ( ) { final byte [ ] data = new byte [ 1024 ] ; for ( int i = 0 ; i < 1020 ; i ++ ) { data [ i ] = 'A' ; } java . nio . file . Files . write ( targetFile . toPath ( ) , data , StandardOpenOption . CREATE , StandardOpenOption . TRUNCATE_EXISTING ) ; final int zeroCount = org . apa...
org . junit . Assert . assertEquals ( 4 , zeroCount )
checkWontEquivalateToSeries ( ) { org . atlasapi . media . entity . Item item = new org . atlasapi . media . entity . Item ( ) ; item . setPublisher ( Publisher . ARQIVA ) ; item . setCanonicalUri ( "target" ) ; org . atlasapi . media . entity . Series candidate1 = seriesWithBroadcast ( new org . joda . time . DateTime...
org . junit . Assert . assertTrue ( ( ( equivalenceResult . strongEquivalences ( ) . values ( ) . size ( ) ) == 1 ) )
testApplyProxyHeadersWithXForwardedPortMatchingDefaultHTTPPort ( ) { edu . illinois . library . cantaloupe . http . Headers headers = new edu . illinois . library . cantaloupe . http . Headers ( ) ; headers . set ( "X-Forwarded-Port" , "80" ) ; edu . illinois . library . cantaloupe . http . Reference ref = new edu . il...
org . junit . Assert . assertEquals ( "http://bogus/cats" , ref . toString ( ) )
capitalizeWithNull ( ) { "<AssertPlaceHolder>" ; } capitalize ( java . lang . String ) { if ( isEmpty ( s ) ) { return s ; } return ( s . substring ( 0 , 1 ) . toUpperCase ( ) ) + ( s . substring ( 1 ) . toLowerCase ( ) ) ; }
org . junit . Assert . assertEquals ( null , instance . capitalize ( null ) )
testCompareTo ( ) { final nl . bzk . migratiebrp . conversie . model . brp . attribuut . BrpSoortRelatieCode result = nl . bzk . migratiebrp . conversie . model . brp . attribuut . BrpSoortRelatieCode . wrap ( "1" , onderzoek ) ; final nl . bzk . migratiebrp . conversie . model . brp . attribuut . BrpSoortRelatieCode r...
org . junit . Assert . assertEquals ( 0 , result . compareTo ( result2 ) )
testThrowsExceptionIfFixtureCannotBeInstantiated ( ) { try { factory . getFixture ( info . novatec . testit . livingdoc . systemunderdevelopment . DefaultSystemUnderDevelopmentTest . BadTarget . class . getName ( ) ) ; org . junit . Assert . fail ( "Should<sp>have<sp>thrown<sp>an<sp>exception." ) ; } catch ( java . lan...
org . junit . Assert . assertTrue ( true )
stripLongWords ( ) { java . lang . String testDocument = "can<sp>a<sp>word<sp>be<sp>a<sp>b<sp>c<sp>d<sp>e<sp>f<sp>g<sp>or<sp>a<sp>superfragalisticexpaliadouciousmagicake" ; java . lang . String expectedResult = "can<sp>a<sp>word<sp>be<sp>a<sp>b<sp>c<sp>d<sp>e<sp>f<sp>g<sp>or<sp>a" ; edu . ucla . sspace . text . Documen...
org . junit . Assert . assertEquals ( expectedResult , testProcessor . process ( testDocument ) )
getAnnotations ( ) { java . lang . reflect . Method method = getClass ( ) . getMethod ( "foo" , int . class ) ; java . util . List < java . lang . annotation . Annotation > annotations = org . junit . contrib . theories . ParameterSignature . signatures ( method ) . get ( 0 ) . getAnnotations ( ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertThat ( annotations , org . hamcrest . CoreMatchers . < org . junit . contrib . theories . suppliers . TestedOn > hasItem ( isA ( org . junit . contrib . theories . suppliers . TestedOn . class ) ) )
eersteSelectieDatumVoorBeginDatumMetHerhaling ( ) { dienst . setEersteSelectieDatum ( nl . bzk . algemeenbrp . util . common . DatumUtil . datumRondVandaag ( 15 ) ) ; dienst . setSelectieInterval ( 1 ) ; dienst . setEenheidSelectieInterval ( EenheidSelectieInterval . MAAND . getId ( ) ) ; java . util . Collection < nl ...
org . junit . Assert . assertThat ( taken . size ( ) , org . hamcrest . CoreMatchers . is ( 1 ) )
testDiseaseTypeGets ( ) { java . lang . String code = "" ; try { code = _setupTestDiseaseType ( false ) ; _checkDiseaseTypeIntoDb ( code ) ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; "<AssertPlaceHolder>" ; } return ; } _checkDiseaseTypeIntoDb ( java . lang . String ) { org . isf . distype . mod...
org . junit . Assert . assertEquals ( true , false )
testCreatePatient ( ) { ca . uhn . fhir . jaxrs . server . Patient toCreate = createPatient ( 1 ) ; ca . uhn . fhir . rest . api . MethodOutcome outcome = new ca . uhn . fhir . rest . api . MethodOutcome ( ) ; toCreate . getIdentifier ( ) . add ( new ca . uhn . fhir . jaxrs . server . Identifier ( ) . setValue ( "myIde...
org . junit . Assert . assertEquals ( "myIdentifier" , patientCaptor . getValue ( ) . getIdentifier ( ) . get ( 0 ) . getValue ( ) )
testConstructorWithStringForCert ( ) { com . microsoft . azure . sdk . iot . device . auth . IotHubX509 iotHubX509 = mockit . Deencapsulation . newInstance ( com . microsoft . azure . sdk . iot . device . auth . IotHubX509 . class , new java . lang . Class [ ] { java . lang . String . class , boolean . class , java . l...
org . junit . Assert . assertEquals ( tests . unit . com . microsoft . azure . sdk . iot . device . auth . IotHubX509Test . someCert , actualPublicKeyCert )
testGetProperty ( ) { java . util . Optional < ? > name = clientBindableDefinitionAdapter . getProperty ( model , org . kie . workbench . common . stunner . core . client . definition . adapter . binding . PROPERTY_NAME ) ; "<AssertPlaceHolder>" ; } get ( ) { return extractReturnToLinkFromDefinitions ( ) ; }
org . junit . Assert . assertEquals ( name . get ( ) , value )
containsCorrectFilterForOrientation1 ( ) { java . io . File sourceFile = new java . io . File ( "test-resources/Exif/source_1.jpg" ) ; net . coobird . thumbnailator . tasks . io . InputStreamImageSource source = new net . coobird . thumbnailator . tasks . io . InputStreamImageSource ( new java . io . FileInputStream ( ...
org . junit . Assert . assertTrue ( param . getImageFilters ( ) . isEmpty ( ) )
testMinWithValidRangeWithNullCF ( ) { org . apache . hadoop . hbase . client . coprocessor . AggregationClient aClient = new org . apache . hadoop . hbase . client . coprocessor . AggregationClient ( org . apache . hadoop . hbase . coprocessor . TestAggregateProtocol . conf ) ; org . apache . hadoop . hbase . client . ...
org . junit . Assert . assertEquals ( null , min )
convertNestedNotToCnfTest ( ) { org . s1ck . gdl . model . predicates . Predicate a = getComparison ( ) ; org . s1ck . gdl . model . predicates . Predicate nestedNot = new org . s1ck . gdl . model . predicates . booleans . Not ( a ) ; org . gradoop . flink . model . impl . operators . matching . common . query . predic...
org . junit . Assert . assertEquals ( reference , notPredicate . asCNF ( ) )
test_SYNCHRONOUS_UNSAFE_DISPATCHER ( ) { final com . mycila . event . Dispatcher dispatcher = com . mycila . event . Dispatchers . synchronousUnsafe ( com . mycila . event . ErrorHandlers . rethrow ( ) ) ; final java . util . concurrent . CountDownLatch go = new java . util . concurrent . CountDownLatch ( 1 ) ; final j...
org . junit . Assert . assertTrue ( ( ( paralellCalls . get ( ) ) > 10 ) )
testNoArgs ( ) { org . eclipse . ceylon . common . tool . ToolModel < org . eclipse . ceylon . tools . copy . CeylonCopyTool > model = pluginLoader . loadToolModel ( "copy" ) ; "<AssertPlaceHolder>" ; try { pluginFactory . bindArguments ( model , getMainTool ( ) , java . util . Collections . < java . lang . String > em...
org . junit . Assert . assertNotNull ( model )
testBatchInsertIntoOneTable ( ) { net . paoding . rose . jade . BatchUpdateTest . UserDAO dao = getOneTable ( ) ; java . util . List < net . paoding . rose . jade . BatchUpdateTest . User > users = new java . util . LinkedList < net . paoding . rose . jade . BatchUpdateTest . User > ( ) ; net . paoding . rose . jade . ...
org . junit . Assert . assertEquals ( users , usersFromDB )
testRevert ( ) { org . apache . commons . math3 . geometry . euclidean . threed . Line line = new org . apache . commons . math3 . geometry . euclidean . threed . Line ( new org . apache . commons . math3 . geometry . euclidean . threed . Vector3D ( 1653345.6696423641 , 6170370.041579291 , 90000 ) , new org . apache . ...
org . junit . Assert . assertArrayEquals ( expected . toArray ( ) , reverted . getDirection ( ) . toArray ( ) , 0 )
testImplicitPortalClosing ( ) { java . sql . Statement statement = conn . createStatement ( ) ; java . sql . ResultSet rs = statement . executeQuery ( "select<sp>session_id()" ) ; rs . next ( ) ; java . lang . String id = rs . getString ( 1 ) ; statement . close ( ) ; java . sql . PreparedStatement s = conn . prepareSt...
org . junit . Assert . assertEquals ( 1 , runningCount )
testAnnotatedQuickReplyTemplateBot ( ) { java . lang . String json = "{\"sender\":{\"id\":\"1158621824216736\"},\"recipient\":{\"id\":\"1226565047419159\"},\"timestamp\":1490832021661,\"message\":{\"mid\":\"mid.$cAAUPCFn4ymdhTcignVbHH3rzpKd_\",\"seq\":844819,\"text\":\"quick<sp>replies\"}}" ; co . aurasphere . botmill ...
org . junit . Assert . assertNotNull ( envelope )