input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testHasIndexHashKeyEqualCondition_WhenConditionCriteriaIsEqualityOnAPropertyWhichIsNeitherAnIndexHashKeyOrAHashKeyButIsRangeKey ( ) { org . mockito . Mockito . when ( entityInformation . isGlobalIndexHashKeyProperty ( "playlistName" ) ) . thenReturn ( false ) ; criteria . withPropertyEquals ( "playlistName" , "some<sp>...
org . junit . Assert . assertFalse ( hasIndexHashKeyEqualCondition )
apiUrl ( ) { uc . setApiUrl ( "some-fake-url" ) ; "<AssertPlaceHolder>" ; } getApiUrl ( ) { return prefixUrlApi ; }
org . junit . Assert . assertEquals ( "some-fake-url" , uc . getApiUrl ( ) )
toObjectType_BooleanTrue ( ) { "<AssertPlaceHolder>" ; } toObjectType ( java . lang . String , java . lang . Class ) { if ( com . adobe . acs . commons . util . Double . class . equals ( klass ) ) { try { return klass . cast ( java . lang . Double . parseDouble ( data ) ) ; } catch ( java . lang . NumberFormatException...
org . junit . Assert . assertEquals ( Boolean . TRUE , com . adobe . acs . commons . util . TypeUtil . toObjectType ( "true" , com . adobe . acs . commons . util . Boolean . class ) )
testGetFileError ( ) { when ( workspaceClient . getObject ( any ( ) , any ( ) ) ) . thenThrow ( new fr . gouv . vitam . workspace . api . exception . ContentAddressableStorageNotFoundException ( "" ) ) ; try ( final fr . gouv . vitam . worker . common . HandlerIO io = new fr . gouv . vitam . worker . core . impl . Hand...
org . junit . Assert . assertTrue ( io . checkHandlerIO ( 0 , new java . util . ArrayList ( ) ) )
testGetFcWWNN ( ) { java . lang . String nodeName = com . iwave . ext . netapp . MiscTests . netAppFacade . getFcWWNN ( ) ; "<AssertPlaceHolder>" ; System . out . println ( ( "WWNN:<sp>" + nodeName ) ) ; } getFcWWNN ( ) { java . lang . String nodeName = null ; netapp . manage . NaElement result = server . invoke ( "fcp...
org . junit . Assert . assertNotNull ( nodeName )
testRemoveDescriptor ( ) { deviceFlowRegistry . addMark ( key ) ; "<AssertPlaceHolder>" ; } getAllFlowDescriptors ( ) { return flowRegistry ; }
org . junit . Assert . assertEquals ( 0 , deviceFlowRegistry . getAllFlowDescriptors ( ) . size ( ) )
getDeviceConnectionString_return_ok_withX509 ( ) { java . lang . String deviceId = "somedevice" ; java . lang . String hostName = "aaa.bbb.ccc" ; java . lang . String nullDeviceKey = null ; java . lang . String validThumbprint = "thumbrpint" ; java . lang . String expectedDeviceConnectionString = ( ( ( "HostName=" + ho...
org . junit . Assert . assertEquals ( expectedDeviceConnectionString , returnDeviceConnectionString )
testClone ( ) { java . lang . Object clone = noneCloneProcess . clone ( def1 ) ; "<AssertPlaceHolder>" ; } clone ( org . kie . workbench . common . stunner . core . graph . content . view . Point2D ) { return new org . kie . workbench . common . stunner . core . graph . content . view . Point2D ( point . getX ( ) , poi...
org . junit . Assert . assertEquals ( clone , def1 )
testVertexSetIteratorTooFar ( ) { edu . ucla . sspace . graph . DirectedMultigraph < java . lang . String > g = new edu . ucla . sspace . graph . DirectedMultigraph < java . lang . String > ( ) ; edu . ucla . sspace . graph . Set < java . lang . Integer > control = new edu . ucla . sspace . graph . HashSet < java . lan...
org . junit . Assert . assertEquals ( vertices . size ( ) , i )
buildRevenueShareDetail_resellerOldXML ( ) { org . oscm . reportingservice . dao . PartnerRevenueDao sqlResult = givenReportData3 ( ) ; org . oscm . reportingservice . business . model . supplierrevenushare . RDOSupplierRevenueShareReport supplierReport = new org . oscm . reportingservice . business . SupplierRevenueSh...
org . junit . Assert . assertEquals ( 0 , resellerDetails . size ( ) )
parsePermissions ( ) { final java . lang . String json = "{\"permissions\":[{\"source\":\"prov1\",\"target\":\"prov1\",\"type\":\"WRITE\"},{\"source\":\"prov2\",\"target\":\"prov2\",\"type\":\"WRITE\"}]}" ; final org . sentilo . platform . common . domain . PermissionsMessage message = ( ( org . sentilo . platform . co...
org . junit . Assert . assertTrue ( ( ( ( message . getPermissions ( ) ) != null ) && ( ( message . getPermissions ( ) . size ( ) ) == 2 ) ) )
should_not_accept_valid_application_file ( ) { org . w3c . dom . Element element = mock ( org . w3c . dom . Element . class ) ; when ( element . getNamespaceURI ( ) ) . thenReturn ( "invalid_namespace" ) ; org . bonitasoft . studio . ui . validator . NamespaceXMLFileValidator validator = new org . bonitasoft . studio ....
org . junit . Assert . assertFalse ( validator . isValid ( element ) )
testIterator ( ) { org . apache . commons . math . linear . RealVector v = new org . apache . commons . math . linear . AbstractRealVectorTest . TestVectorImpl ( vec2 . clone ( ) ) ; org . apache . commons . math . linear . RealVector . Entry e ; int i = 0 ; for ( java . util . Iterator < org . apache . commons . math ...
org . junit . Assert . assertEquals ( vec2 [ i ] , e . getValue ( ) , 0 )
subPoint3DPoint3D ( ) { org . arakhne . afc . math . geometry . d3 . continuous . Point3f v1 = new org . arakhne . afc . math . geometry . d3 . continuous . Point3f ( this . random . nextDouble ( ) , this . random . nextDouble ( ) , this . random . nextDouble ( ) ) ; org . arakhne . afc . math . geometry . d3 . continu...
org . junit . Assert . assertTrue ( sum . equals ( temp ) )
testBulkPushLimit ( ) { com . devwebsphere . wxsutils . WXSMapOfLists < java . lang . String , java . lang . String > map = com . devwebsphere . wxsutils . TestClientAPIs . utils . getMapOfLists ( "BigListLimit" ) ; java . lang . String key = "BULK_LIST" ; "<AssertPlaceHolder>" ; java . util . List < java . lang . Stri...
org . junit . Assert . assertEquals ( 0 , map . llen ( key ) )
testImgToTensorDirectTyped ( ) { "<AssertPlaceHolder>" ; final long [ ] dims = new long [ ] { 20 , 10 , 3 } ; final int n = dims . length ; testImg2TensorDirectTyped ( new net . imglib2 . img . array . ArrayImgFactory < net . imglib2 . type . numeric . integer . ByteType > ( ) . create ( dims , new net . imglib2 . type...
org . junit . Assert . assertEquals ( 1 , 1 )
testUpdateScrollBarOnClearAll ( ) { tree . setSize ( 100 , 100 ) ; org . eclipse . swt . widgets . TreeItem item = new org . eclipse . swt . widgets . TreeItem ( tree , org . eclipse . swt . SWT . NONE ) ; item . setText ( "Very<sp>long<sp>long<sp>long<sp>long<sp>long<sp>long<sp>long<sp>long<sp>text" ) ; tree . clearAl...
org . junit . Assert . assertFalse ( tree . hasHScrollBar ( ) )
test_executeTask_ValidHost_NoBoardMapping ( ) { com . vmware . vrack . hms . task . oob . ipmi . AcpiPowerStateTaskTest . logger . info ( "TS:<sp>AcpiPowerStateTaskTest:<sp>test_executeTask_ValidHost_NoBoardMapping" ) ; com . vmware . vrack . hms . common . notification . TaskResponse taskResponse = getTaskResponse ( )...
org . junit . Assert . assertNotNull ( node . getAcpiPowerState ( ) )
sendMessageAndGetDeliveryHashReturnsNull ( ) { tests . unit . com . microsoft . azure . sdk . iot . device . transport . amqps . AmqpsDeviceAuthenticationX509 auth = new tests . unit . com . microsoft . azure . sdk . iot . device . transport . amqps . AmqpsDeviceAuthenticationX509 ( mockDeviceClientConfig ) ; tests . u...
org . junit . Assert . assertNull ( result )
testCustomOrdering ( ) { java . util . LinkedHashSet < org . apache . tomcat . util . net . jsse . openssl . Cipher > result = org . apache . tomcat . util . net . jsse . openssl . OpenSSLCipherConfigurationParser . parse ( ( "ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-RSA-DES-CBC3-SHA:" + "DHE-RSA-AES256-SHA:D...
org . junit . Assert . assertEquals ( expected . toString ( ) , result . toString ( ) )
testGather ( ) { org . nd4j . autodiff . opvalidation . List < org . nd4j . linalg . api . ndarray . INDArray > inArrs = new org . nd4j . autodiff . opvalidation . ArrayList ( ) ; org . nd4j . autodiff . opvalidation . List < java . lang . Integer > axis = new org . nd4j . autodiff . opvalidation . ArrayList ( ) ; org ...
org . junit . Assert . assertNull ( err )
testNegAllValuesFrom ( ) { org . semanticweb . owlapi . model . OWLObjectProperty property = ObjectProperty ( iri ( "p" ) ) ; org . semanticweb . owlapi . model . OWLClass filler = Class ( iri ( "A" ) ) ; org . semanticweb . owlapi . model . OWLObjectAllValuesFrom allValuesFrom = ObjectAllValuesFrom ( property , filler...
org . junit . Assert . assertEquals ( cls . getNNF ( ) , nnf )
testGetAllAttributes ( ) { org . hisp . dhis . attribute . Attribute attribute1 = new org . hisp . dhis . attribute . Attribute ( ) ; attribute1 . setValueType ( ValueType . TEXT ) ; attribute1 . setName ( "attribute1" ) ; org . hisp . dhis . attribute . Attribute attribute2 = new org . hisp . dhis . attribute . Attrib...
org . junit . Assert . assertEquals ( 2 , attributeService . getAllAttributes ( ) . size ( ) )
testListBySearchOICR ( ) { java . util . List < uk . ac . bbsrc . tgac . miso . core . data . Study > runs = dao . listBySearch ( "OICR" ) ; "<AssertPlaceHolder>" ; } size ( ) { return map . size ( ) ; }
org . junit . Assert . assertEquals ( 3 , runs . size ( ) )
testRemoveMaterialCategory ( ) { org . libreplan . business . materials . entities . MaterialCategory materialCategory = createValidMaterialCategory ( ) ; materialCategoryDAO . save ( materialCategory ) ; materialCategoryDAO . remove ( materialCategory . getId ( ) ) ; "<AssertPlaceHolder>" ; } exists ( PK extends java ...
org . junit . Assert . assertFalse ( materialCategoryDAO . exists ( materialCategory . getId ( ) ) )
testGetURLsForClasspathWithSingleJAR ( ) { final java . lang . String jarFilePath = "src/test/resources/TestClassLoaderUtils/TestSuccess.jar" ; java . net . URL [ ] urls = org . apache . nifi . util . file . classloader . ClassLoaderUtils . getURLsForClasspath ( jarFilePath , null , false ) ; "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertEquals ( 1 , urls . length )
testRun_propagatesToSubProgram ( ) { org . apache . calcite . rel . RelNode node2 = org . mockito . Mockito . mock ( org . apache . calcite . rel . RelNode . class ) ; org . mockito . Mockito . doReturn ( node2 ) . when ( subProgram ) . run ( org . mockito . Mockito . any ( ) , org . mockito . Mockito . same ( inNode )...
org . junit . Assert . assertSame ( node2 , result )
testUsernameExtractionEnvVarOverrride ( ) { java . lang . String whoami = org . apache . hadoop . registry . client . binding . RegistryUtils . getCurrentUsernameUnencoded ( "drwho" ) ; "<AssertPlaceHolder>" ; } getCurrentUsernameUnencoded ( java . lang . String ) { java . lang . String shortUserName = null ; if ( ! ( ...
org . junit . Assert . assertEquals ( "drwho" , whoami )
testTimeout ( ) { com . ctrip . xpipe . netty . commands . RequestResponseCommandTest . TestCommand testCommand = new com . ctrip . xpipe . netty . commands . RequestResponseCommandTest . TestCommand ( "sleep<sp>5000\r\n" , 1000 , clientPool , scheduled , null ) ; com . ctrip . xpipe . api . command . CommandFuture < j...
org . junit . Assert . assertTrue ( ( ( listenerFuture . get ( ) ) != null ) )
testFromMethodWithoutDescriptionHasAbsentOptional ( ) { org . eclipse . jdt . core . IMethod method = mock ( org . eclipse . jdt . core . IMethod . class ) ; when ( method . getElementName ( ) ) . thenReturn ( "getFoo" ) ; org . eclipse . jdt . core . IAnnotation required = mock ( org . eclipse . jdt . core . IAnnotati...
org . junit . Assert . assertNull ( property . getDescription ( ) )
model_2 ( ) { com . hp . hpl . jena . rdf . model . Model assem = com . hp . hpl . jena . util . FileManager . get ( ) . loadModel ( ( ( com . talis . hbase . rdf . test . misc . TestAssembler . dir ) + "graph-assembler.ttl" ) ) ; com . hp . hpl . jena . rdf . model . Resource x = assem . getResource ( "http://example/...
org . junit . Assert . assertNotNull ( model )
testDefaultIsFollowRedirects ( ) { org . apache . shindig . gadgets . http . HttpRequest request = new org . apache . shindig . gadgets . http . HttpRequest ( org . apache . shindig . gadgets . http . HttpRequestTest . DEFAULT_URI ) ; "<AssertPlaceHolder>" ; } getFollowRedirects ( ) { return followRedirects ; }
org . junit . Assert . assertTrue ( request . getFollowRedirects ( ) )
testEasyUtf8 ( ) { java . lang . String input = "abcdefghijklm" ; byte [ ] bytes = software . amazon . ion . impl . PrivateUtils . utf8 ( input ) ; byte [ ] direct = input . getBytes ( "UTF-8" ) ; "<AssertPlaceHolder>" ; } getBytes ( java . io . OutputStream ) { com . amazon . ion . impl . lite . ReverseBinaryEncoder e...
org . junit . Assert . assertArrayEquals ( direct , bytes )
testGetByteArrayDoesNotAlterMessage ( ) { org . eclipse . californium . core . coap . Request req = org . eclipse . californium . core . coap . Request . newGet ( ) ; req . setToken ( new byte [ ] { 0 } ) ; req . getOptions ( ) . setObserve ( 0 ) ; req . setDestination ( java . net . InetAddress . getLoopbackAddress ( ...
org . junit . Assert . assertNull ( req . getBytes ( ) )
testCurlyBrace ( ) { java . lang . String source = "(NP<sp>(DT<sp>an)<sp>(-LRB-<sp>-LCB-)<sp>(VBG<sp>offending)<sp>(-RRB-<sp>-RCB-)<sp>(NN<sp>country))" ; java . lang . String expected = "an<sp>{offending}<sp>country" ; edu . nyu . jet . format . PTBReader parser = new edu . nyu . jet . format . PTBReader ( ) ; edu . n...
org . junit . Assert . assertEquals ( ( expected + "\n" ) , doc . text ( ) )
colnullNullPointerException ( ) { com . fujitsu . dc . core . model . impl . es . accessor . DavNodeAccessor col = com . fujitsu . dc . core . model . impl . es . EsModel . col ( null ) ; "<AssertPlaceHolder>" ; } col ( com . fujitsu . dc . core . model . Cell ) { return new com . fujitsu . dc . core . model . impl . e...
org . junit . Assert . assertNotNull ( col )
createEndInboundProcessing ( ) { gov . hhs . fha . nhinc . event . Event event = eventFactory . createEndInboundProcessing ( ) ; "<AssertPlaceHolder>" ; } createEndInboundProcessing ( ) { return new gov . hhs . fha . nhinc . event . responder . EndInboundProcessingEvent ( ) ; }
org . junit . Assert . assertTrue ( ( event instanceof gov . hhs . fha . nhinc . event . responder . EndInboundProcessingEvent ) )
createOrUpdateEnrollmentGroupSucceed ( tests . unit . com . microsoft . azure . sdk . iot . provisioning . service . EnrollmentGroup ) { tests . unit . com . microsoft . azure . sdk . iot . provisioning . service . ProvisioningServiceClient provisioningServiceClient = createClient ( ) ; new mockit . NonStrictExpectatio...
org . junit . Assert . assertNotNull ( result )
testConstructorParameterTypes ( ) { com . thoughtworks . qdox . model . JavaClass cls = com . thoughtworks . qdox . model . JavaConstructorTest . mock ( com . thoughtworks . qdox . model . JavaClass . class ) ; when ( cls . getFullyQualifiedName ( ) ) . thenReturn ( "a.b.Executor" ) ; D constructor = newJavaConstructor...
org . junit . Assert . assertEquals ( "a.b.C" , constructor . getParameterTypes ( ) . get ( 0 ) . getFullyQualifiedName ( ) )
testAsort ( ) { logger . info ( "asort" ) ; java . lang . Double [ ] array = new com . datumbox . framework . core . common . utilities . Double [ ] { 1.1 , 1.2 , 1.3 , 1.4 , 1.0 } ; java . lang . Integer [ ] expResult = new java . lang . Integer [ ] { 4 , 0 , 1 , 2 , 3 } ; java . lang . Integer [ ] result = com . datu...
org . junit . Assert . assertArrayEquals ( expResult , result )
testReadMultiple ( ) { try ( com . syncleus . ferma . tx . Tx tx = tx ( ) ) { java . lang . String etag = callETag ( ( ) -> client ( ) . findBranches ( com . gentics . mesh . core . branch . PROJECT_NAME ) ) ; "<AssertPlaceHolder>" ; callETag ( ( ) -> client ( ) . findBranches ( com . gentics . mesh . core . branch . P...
org . junit . Assert . assertNotNull ( etag )
shortValue ( ) { final org . jboss . msc . value . Value < java . lang . Short > value = new org . jboss . msc . value . DefaultValue < java . lang . Short > ( new org . jboss . msc . value . ImmediateValue < java . lang . Short > ( ( ( short ) ( 10 ) ) ) , new org . jboss . msc . value . ImmediateValue < java . lang ....
org . junit . Assert . assertEquals ( 10 , ( ( short ) ( value . getValue ( ) ) ) )
getBooleanTrue ( ) { final java . lang . Integer value = 1 ; final io . trane . ndbc . value . IntegerValue wrapper = new io . trane . ndbc . value . IntegerValue ( value ) ; "<AssertPlaceHolder>" ; } getBoolean ( ) { return ( get ( ) ) == 1 ; }
org . junit . Assert . assertEquals ( true , wrapper . getBoolean ( ) )
testMeanNumber ( ) { org . springframework . data . solr . core . query . result . SimpleStatsResult stats = new org . springframework . data . solr . core . query . result . SimpleStatsResult ( ) ; java . util . Date date = new java . util . Date ( ) ; stats . setMean ( 1L ) ; "<AssertPlaceHolder>" ; } getMeanAsDouble...
org . junit . Assert . assertEquals ( 1.0 , stats . getMeanAsDouble ( ) , 0.0 )
optional_long_of ( ) { java . util . OptionalLong optionalLong = java . util . OptionalLong . of ( 89 ) ; "<AssertPlaceHolder>" ; } getAsLong ( ) { return 10 ; }
org . junit . Assert . assertEquals ( 89 , optionalLong . getAsLong ( ) , 0 )
equals_differentValue ( ) { com . icantrap . collections . dawg . Node lhs = new com . icantrap . collections . dawg . Node ( 'x' ) ; com . icantrap . collections . dawg . Node rhs = new com . icantrap . collections . dawg . Node ( 'y' ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj...
org . junit . Assert . assertFalse ( lhs . equals ( rhs ) )
testGet ( ) { org . onlab . util . ExtendedSet < org . onlab . util . ExtendedSetTest . TestValue > set = new org . onlab . util . ExtendedSet ( com . google . common . collect . Maps . newConcurrentMap ( ) ) ; org . onlab . util . ExtendedSetTest . TestValue e1 = new org . onlab . util . ExtendedSetTest . TestValue ( ...
org . junit . Assert . assertEquals ( e1 , setEntry )
_shouldBeAbleToDeclareHelperMethods ( ) { final java . lang . String spec = "\r\n\t\t\tpackage<sp>bootstrap\r\n\r\n\t\t\tdescribe<sp>\"ExampleGroup\"<sp>{\r\n\t\t\t\r\n\t\t\t\tint<sp>i<sp>=<sp>0\r\n\t\t\t\r\n\t\t\t\tfact<sp>\"should<sp>be<sp>able<sp>to<sp>declare<sp>void<sp>helper<sp>methods\"{\r\n\t\t\t\t\tinc()\r\n\t...
org . junit . Assert . < org . junit . runner . Result > assertThat ( _execute , _isSuccessful )
testSetGetMaxBuckets ( ) { org . apache . druid . indexer . path . GranularUnprocessedPathSpec granularUnprocessedPathSpec = new org . apache . druid . indexer . path . GranularUnprocessedPathSpec ( ) ; int maxBuckets = 5 ; granularUnprocessedPathSpec . setMaxBuckets ( maxBuckets ) ; "<AssertPlaceHolder>" ; } getMaxBuc...
org . junit . Assert . assertEquals ( maxBuckets , granularUnprocessedPathSpec . getMaxBuckets ( ) )
testParseNegativeZ ( ) { java . lang . String source = ( ( ( "{1" + ( getDecimalCharacter ( ) ) ) + "2323;<sp>1" ) + ( getDecimalCharacter ( ) ) ) + "4343}" ; org . hipparchus . geometry . euclidean . twod . Vector2D expected = new org . hipparchus . geometry . euclidean . twod . Vector2D ( 1.2323 , 1.4343 ) ; org . hi...
org . junit . Assert . assertEquals ( expected , actual )
testGetCreationTime ( ) { long start = java . lang . System . currentTimeMillis ( ) ; java . lang . Thread . sleep ( 100 ) ; java . lang . String path = "/a" ; _client . createPersistent ( path ) ; java . lang . Thread . sleep ( 100 ) ; long end = java . lang . System . currentTimeMillis ( ) ; long creationTime = _clie...
org . junit . Assert . assertTrue ( ( ( start < creationTime ) && ( end > creationTime ) ) )
testTritium ( ) { java . lang . String filename = "data/mdl/chemblMolregno7039.mol" ; java . io . InputStream ins = this . getClass ( ) . getClassLoader ( ) . getResourceAsStream ( filename ) ; org . openscience . cdk . io . MDLV2000Reader reader = new org . openscience . cdk . io . MDLV2000Reader ( ins ) ; org . opens...
org . junit . Assert . assertEquals ( 1 , tritiumCount )
mountAlternateUfs ( ) { java . lang . String alternateUfsRoot = createAlternateUfs ( ) ; try { java . lang . String filePath = alluxio . util . io . PathUtils . concatPath ( alternateUfsRoot , "file1" ) ; alluxio . util . UnderFileSystemUtils . touch ( mUfs , filePath ) ; mFileSystem . mount ( new alluxio . AlluxioURI ...
org . junit . Assert . assertEquals ( "file1" , mFileSystem . listStatus ( new alluxio . AlluxioURI ( "/d1" ) ) . get ( 0 ) . getName ( ) )
testPutGetMultipleModifiesMultipleClients ( ) { int conurrencyFactor = ( org . hive2hive . core . network . data . vdht . VersionManagerTest . random . nextInt ( 2 ) ) + 2 ; java . lang . String locationKey = randomString ( ) ; java . lang . String contentKey = randomString ( ) ; java . util . ArrayList < org . hive2hi...
org . junit . Assert . assertEquals ( versions . get ( ( i - 1 ) ) , version . getTestString ( ) )
testSkippedAlertWithNoCurrentAlert ( ) { java . lang . String definitionName = ( org . apache . ambari . server . state . alerts . AlertReceivedListenerTest . ALERT_DEFINITION ) + "1" ; java . lang . String serviceName = "HDFS" ; java . lang . String componentName = "NAMENODE" ; org . apache . ambari . server . state ....
org . junit . Assert . assertEquals ( 0 , allCurrent . size ( ) )
warningMessageTest ( ) { boolean warningFound = false ; try ( final java . io . BufferedReader reader = java . nio . file . Files . newBufferedReader ( org . jboss . as . test . integration . logging . profiles . NonExistingProfileTestCase . loggingTestLog , StandardCharsets . UTF_8 ) ) { java . lang . String line ; wh...
org . junit . Assert . assertTrue ( warningFound )
isNeverEnding ( ) { org . optaplanner . core . impl . heuristic . selector . entity . EntitySelector childEntitySelector = org . optaplanner . core . impl . heuristic . selector . SelectorTestUtils . mockEntitySelector ( org . optaplanner . core . impl . testdata . domain . TestdataEntity . class ) ; org . optaplanner ...
org . junit . Assert . assertTrue ( entitySelector . isNeverEnding ( ) )
testOIDUniquness ( ) { for ( java . lang . String table : new java . lang . String [ ] { "pg_type" , "pg_attribute" , "pg_namespace" , "pg_index" } ) { execute ( ( "select<sp>count(distinct<sp>oid),<sp>count(*)<sp>from<sp>" + table ) ) ; internalResultSet . next ( ) ; "<AssertPlaceHolder>" ; } } getInt ( java . lang . ...
org . junit . Assert . assertEquals ( internalResultSet . getInt ( 2 ) , internalResultSet . getInt ( 1 ) )
testInputValidatorSimpleWithWhere ( ) { java . lang . String userInput = "\"bvv:gmd_ex\"<sp>WHERE<sp>bvv:objid=\'DEBYBDLMjK0001Ia\'" ; boolean result = controller . validateEcqlUserInput ( userInput , false ) ; "<AssertPlaceHolder>" ; } validateEcqlUserInput ( java . lang . String , boolean ) { if ( overallQueries ) { ...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( false ) )
testBuildGarage ( ) { com . baidu . unbiz . fluentvalidator . demo . dto . Garage garage = getValidGarage ( ) ; com . baidu . unbiz . fluentvalidator . ComplexResult result = garageService . buildGarage ( garage ) ; System . out . println ( result ) ; "<AssertPlaceHolder>" ; } isSuccess ( ) { return isSuccess ; }
org . junit . Assert . assertThat ( result . isSuccess ( ) , org . hamcrest . core . Is . is ( true ) )
testGetValueNormal ( ) { new mockit . Expectations ( ) { { request . getParameter ( "name" ) ; result = "value" ; } } ; org . apache . servicecomb . common . rest . codec . param . ParamValueProcessor processor = createProcessor ( "name" , java . lang . String . class , "multi" ) ; java . lang . Object value = processo...
org . junit . Assert . assertEquals ( "value" , value )
testSetCommunityId ( ) { try { gov . hhs . fha . nhinc . connectmgr . ConnectionManagerCache connectionManager = createConnectionManager ( ) ; org . uddi . api_v3 . BusinessEntity businessEntity = connectionManager . getBusinessEntity ( gov . hhs . fha . nhinc . connectmgr . HCID_1 ) ; gov . hhs . fha . nhinc . connect...
org . junit . Assert . assertTrue ( newHCID . equals ( HCID_3 ) )
testClampSectorWithNullSource ( ) { gov . nasa . worldwind . geom . Sector source = null ; gov . nasa . worldwind . geom . Sector extents = new gov . nasa . worldwind . geom . Sector ( gov . nasa . worldwind . geom . Angle . NEG90 , gov . nasa . worldwind . geom . Angle . POS90 , gov . nasa . worldwind . geom . Angle ....
org . junit . Assert . assertEquals ( null , result )
testConvertReplyToManyDocs ( ) { final java . util . List < com . allanbank . mongodb . bson . Document > docs = java . util . Arrays . asList ( com . allanbank . mongodb . bson . builder . BuilderFactory . start ( ) . addInteger ( "ok" , 1 ) . addInteger ( "n" , 44 ) . build ( ) , com . allanbank . mongodb . bson . bu...
org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( ( - 1 ) ) , callback . convert ( reply ) )
parseProviderWriteResponse ( ) { final java . lang . String [ ] parts = new java . lang . String [ ] { "prov1" } ; when ( resource . getParts ( ) ) . thenReturn ( parts ) ; final org . sentilo . platform . server . response . SentiloResponse response = org . sentilo . platform . server . response . SentiloResponse . bu...
org . junit . Assert . assertEquals ( expected , baos . toString ( ) )
testDefaultScaleFactorIsZero ( ) { com . eclipsesource . tabris . tracking . TrackingInfo trackingInfo = new com . eclipsesource . tabris . tracking . TrackingInfo ( ) ; float scaleFactor = trackingInfo . getScaleFactor ( ) ; "<AssertPlaceHolder>" ; } getScaleFactor ( ) { return scaleFactor ; }
org . junit . Assert . assertEquals ( 0 , scaleFactor , 0 )
testIsSetForWorld ( ) { "<AssertPlaceHolder>" ; } isSetForWorld ( org . bukkit . World ) { if ( type . equals ( world . bentobox . bentobox . api . flags . Flag . Type . WORLD_SETTING ) ) { world . bentobox . bentobox . api . configuration . WorldSettings ws = world . bentobox . bentobox . BentoBox . getInstance ( ) . ...
org . junit . Assert . assertFalse ( f . isSetForWorld ( world ) )
testHandlingOfMultipleFlowFilesWithSameId ( ) { for ( int i = 0 ; i < 2 ; i ++ ) { final org . apache . nifi . controller . repository . FlowFileRecord flowFileRecord = new org . apache . nifi . controller . repository . StandardFlowFileRecord . Builder ( ) . id ( 1000L ) . addAttribute ( "uuid" , "12345678-1234-1234-1...
org . junit . Assert . assertNotNull ( ff1 )
canCreateSentences ( ) { org . apache . uima . jcas . JCas jCas = org . apache . uima . fit . factory . JCasFactory . createJCas ( ) ; uk . gov . dstl . baleen . odin . SentenceFactory factory = new uk . gov . dstl . baleen . odin . SentenceFactory ( jCas ) ; java . util . List < uk . gov . dstl . baleen . odin . OdinS...
org . junit . Assert . assertNotNull ( sentences )
notifyPrivateMessageArrivedWhenGuiHiddenAndPrivateChatOutOfFocusShouldUpdateAndBeep ( ) { when ( kouChatFrame . isVisible ( ) ) . thenReturn ( false ) ; when ( kouChatFrame . isFocused ( ) ) . thenReturn ( false ) ; when ( privchat . isVisible ( ) ) . thenReturn ( true ) ; when ( privchat . isFocused ( ) ) . thenReturn...
org . junit . Assert . assertFalse ( me . isNewMsg ( ) )
getModulesAndIncludes ( ) { org . erlide . engine . util . ErlideTestUtils . createInclude ( ErlModelTestBase . projects [ 0 ] , "bb.erl" , "-module(bb).\n" ) ; org . erlide . engine . util . ErlideTestUtils . createModule ( ErlModelTestBase . projects [ 0 ] , "cc.hrl" , "-define(A,<sp>hej).\n" ) ; final org . erlide ....
org . junit . Assert . assertEquals ( expected , includes )
toArray ( ) { com . cloudhopper . commons . util . ByteBuffer buffer = new com . cloudhopper . commons . util . ByteBuffer ( com . cloudhopper . commons . util . ByteBufferTest . TEST_BYTES1 ) ; byte [ ] copyArray = buffer . toArray ( ) ; "<AssertPlaceHolder>" ; } toArray ( ) { return toArray ( 0 , size ( ) ) ; }
org . junit . Assert . assertArrayEquals ( com . cloudhopper . commons . util . ByteBufferTest . TEST_BYTES1 , copyArray )
testBuildWithParameters ( ) { java . lang . String docNum = "doc<sp>num" ; java . lang . String email = "email@email.com" ; java . util . Date begDate = new java . util . Date ( ) ; java . util . Date birthDate = new java . util . Date ( ) ; java . lang . String docSeries = "doc<sp>series" ; java . lang . String surnam...
org . junit . Assert . assertEquals ( expected , actualQuery )
roundtripOfDateIntervalSince ( ) { net . time4j . PlainDate start = net . time4j . PlainDate . of ( 2014 , 2 , 27 ) ; java . lang . Object interval = net . time4j . range . DateInterval . since ( start ) ; java . lang . Object ser = net . time4j . range . SerializationTest . roundtrip ( interval ) ; "<AssertPlaceHolder...
org . junit . Assert . assertThat ( interval , org . hamcrest . CoreMatchers . is ( ser ) )
testNoMatch03 ( ) { boolean matchResult = simpleNamePatternMatcher . matchesEndToEnd ( "a$" ) ; "<AssertPlaceHolder>" ; } matchesEndToEnd ( java . lang . String ) { return pattern . matcher ( input ) . matches ( ) ; }
org . junit . Assert . assertFalse ( matchResult )
testSerialization ( ) { org . jfree . chart . renderer . category . WaterfallBarRenderer r1 = new org . jfree . chart . renderer . category . WaterfallBarRenderer ( ) ; org . jfree . chart . renderer . category . WaterfallBarRenderer r2 = ( ( org . jfree . chart . renderer . category . WaterfallBarRenderer ) ( org . jf...
org . junit . Assert . assertEquals ( r1 , r2 )
getFileConfigShouldReturnFileConfigWithEmptyValuesWhenEditorConfigHasNoProperties ( ) { when ( mockEditorConfig . getProperties ( "path" ) ) . thenReturn ( java . util . Collections . < org . editorconfig . core . EditorConfig . OutPair > emptyList ( ) ) ; final org . eclipse . editorconfig . core . EditorFileConfig fi...
org . junit . Assert . assertThat ( fileConfig . getConfigProperties ( ) , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . empty ( ) ) )
getTermWithEmptyMarkerInCacheReturnsNull ( ) { when ( this . cache . get ( "NOTHING" ) ) . thenReturn ( this . emptyMarker ) ; org . phenotips . vocabulary . VocabularyTerm result = this . mocker . getComponentUnderTest ( ) . getTerm ( "NOTHING" ) ; verify ( this . client , never ( ) ) . execute ( any ( org . apache . ...
org . junit . Assert . assertNull ( result )
validateFromAndToDate ( ) { javax . faces . component . UIComponent dateComponent = mock ( javax . faces . component . UIComponent . class ) ; javax . faces . context . FacesContext facesContext = mock ( javax . faces . context . FacesContext . class ) ; model . setFailedDateComponentId ( null ) ; doReturn ( "toDate" )...
org . junit . Assert . assertEquals ( "toDate" , ctrl . model . getFailedDateComponentId ( ) )
testToAndFromJsonString ( ) { java . lang . String json = net . casper . io . file . tests . CDataFileDefLoaderTest . loader . toJsonString ( net . casper . io . file . tests . CDataFileDefLoaderTest . adultsDef ) ; System . out . println ( json ) ; net . casper . io . file . def . CDataFileDef builtCDF = net . casper ...
org . junit . Assert . assertEquals ( net . casper . io . file . tests . CDataFileDefLoaderTest . adultsDef . toString ( ) , builtCDF . toString ( ) )
shouldFindStreamOfSimples ( ) { java . lang . String name = "something" ; org . apache . deltaspike . data . test . java8 . entity . Simple s = new org . apache . deltaspike . data . test . java8 . entity . Simple ( name ) ; entityManager . persist ( s ) ; java . util . stream . Stream < org . apache . deltaspike . dat...
org . junit . Assert . assertEquals ( 1 , found . count ( ) )
testCluster2 ( ) { org . infinispan . server . RestClient restClient = org . infinispan . server . ClusteredServerTest . serverTestRule . restClient ( ) ; restClient . put ( "k2" , "v2" ) ; "<AssertPlaceHolder>" ; } get ( java . lang . Object ) { try { if ( ( readTimeout ) > 0 ) return wrap ( nativeCache . getAsync ( k...
org . junit . Assert . assertEquals ( "v2" , restClient . get ( "k2" ) )
testNoPlacements ( ) { doDelete ( com . vmware . xenon . common . UriUtils . buildUri ( host , GroupResourcePlacementService . DEFAULT_RESOURCE_PLACEMENT_LINK ) , false ) ; java . util . List < java . lang . String > links = getDocumentLinksOfType ( com . vmware . admiral . compute . container . GroupResourcePlacementS...
org . junit . Assert . assertTrue ( links . isEmpty ( ) )
testToStringNullConfig ( ) { org . eclipse . kura . core . net . NetInterfaceAddressConfigImpl value = createConfig ( ) ; java . util . ArrayList < org . eclipse . kura . net . NetConfig > configs = new java . util . ArrayList ( ) ; configs . add ( null ) ; value . setNetConfigs ( configs ) ; java . lang . String expec...
org . junit . Assert . assertEquals ( expected , value . toString ( ) )
testComputeSpanningHierarchyForward ( ) { com . google . devtools . depan . model . GraphNode [ ] nodeArray = com . google . devtools . depan . test . TestUtils . buildNodes ( 5 ) ; com . google . devtools . depan . model . GraphModel test = com . google . devtools . depan . test . TestUtils . buildComplete ( nodeArray...
org . junit . Assert . assertEquals ( 5 , buildAllNodes ( result ) . size ( ) )
testGetReceivedMessageGaps_NoGaps_OutOfOrder ( ) { for ( int i = 9 ; i >= 0 ; i -- ) { net . xenqtt . client . PublishMessage message = new net . xenqtt . client . PublishMessage ( "a/b/c" , net . xenqtt . message . QoS . AT_MOST_ONCE , createPayload ( i ) ) ; stats . messageReceived ( message ) ; } "<AssertPlaceHolder...
org . junit . Assert . assertTrue ( stats . getReceivedMessageGaps ( ) . isEmpty ( ) )
testWriteReadSeq ( ) { useFCOption = false ; positionReadOption = false ; java . lang . String fname = filenameOption ; long rdBeginPos = 0 ; int stat = testWriteAndRead ( fname , org . apache . hadoop . hdfs . TestWriteRead . WR_NTIMES , org . apache . hadoop . hdfs . TestWriteRead . WR_CHUNK_SIZE , rdBeginPos ) ; org...
org . junit . Assert . assertEquals ( 0 , stat )
testTableWithMultilineHeader ( ) { java . lang . String expectedCsv = technology . tabula . UtilsForTesting . loadCsv ( "src/test/resources/technology/tabula/csv/us-020.csv" ) ; technology . tabula . Page page = technology . tabula . UtilsForTesting . getAreaFromPage ( "src/test/resources/technology/tabula/us-020.pdf" ...
org . junit . Assert . assertEquals ( expectedCsv , sb . toString ( ) )
isNotSameWhenAnUpdatedMetacardMethodReturnsNull ( ) { updatedMetacard . setModifiedDate ( null ) ; "<AssertPlaceHolder>" ; } isSame ( ddf . catalog . data . Metacard , ddf . catalog . data . Metacard ) { if ( ( cachedMetacard == null ) && ( updatedMetacard == null ) ) { return true ; } if ( ( cachedMetacard == null ) |...
org . junit . Assert . assertThat ( ddf . catalog . cache . impl . CachedResourceMetacardComparator . isSame ( cachedMetacard , updatedMetacard ) , org . hamcrest . CoreMatchers . is ( false ) )
testRegisterUserInvalidPassword ( ) { com . sap . pto . dao . entities . User user = new com . sap . pto . dao . entities . User ( com . sap . pto . services . AnonUserServiceTest . TEST_USER_EMAIL , com . sap . pto . services . AnonUserServiceTest . TEST_USER_EMAIL ) ; try { anonUserService . registerUser ( user ) ; o...
org . junit . Assert . assertNull ( newUser )
shouldConditionallyChooseFirst ( ) { final java . lang . String expected = "SELECT<sp>*<sp>FROM<sp>BLOG<sp>WHERE<sp>CATEGORY<sp>=<sp>?" ; org . apache . ibatis . scripting . xmltags . DynamicSqlSource source = createDynamicSqlSource ( new org . apache . ibatis . scripting . xmltags . TextSqlNode ( "SELECT<sp>*<sp>FROM<...
org . junit . Assert . assertEquals ( expected , boundSql . getSql ( ) )
testToBuilder ( ) { initializeExpectedNetwork ( 9 ) ; compareNetwork ( standardNetwork , standardNetwork . toBuilder ( ) . build ( ) ) ; com . google . cloud . compute . deprecated . Network newNetwork = standardNetwork . toBuilder ( ) . setDescription ( "newDescription" ) . build ( ) ; "<AssertPlaceHolder>" ; newNetwo...
org . junit . Assert . assertEquals ( "newDescription" , newNetwork . getDescription ( ) )
testMatrix ( ) { owltools . gaf . inference . ClassTaxonMatrix m = owltools . gaf . inference . ClassTaxonMatrix . create ( owltools . gaf . inference . ClassTaxonMatrixTest . all , owltools . gaf . inference . ClassTaxonMatrixTest . classes , java . util . Arrays . asList ( owltools . gaf . inference . ClassTaxonMatri...
org . junit . Assert . assertTrue ( ( ( writtenMatrix . length ( ) ) > 0 ) )
asLazyValues ( ) { org . eclipse . collections . api . list . MutableList < java . lang . Integer > values = Maps . fixedSize . of ( 1 , 1 ) . valuesView ( ) . toSortedList ( ) ; "<AssertPlaceHolder>" ; } newListWith ( E [ ] ) { return new org . eclipse . collections . impl . list . mutable . FastList < > ( elements ) ...
org . junit . Assert . assertEquals ( org . eclipse . collections . impl . list . mutable . FastList . newListWith ( 1 ) , values )
testGetSubscriptionId ( ) { org . jinstagram . realtime . SubscriptionResponseObject fixture = new org . jinstagram . realtime . SubscriptionResponseObject ( ) ; fixture . setObjectId ( "" ) ; fixture . setEpochTime ( 1L ) ; fixture . setChangedAspect ( "" ) ; fixture . setObject ( "" ) ; fixture . setSubscriptionId ( ...
org . junit . Assert . assertEquals ( "" , result )
shouldUseExistingManaToPayColorless ( ) { mage . Mana available = new mage . Mana ( ) ; available . setRed ( 7 ) ; mage . Mana cost = new mage . Mana ( ) ; cost . setRed ( 4 ) ; cost . setGeneric ( 2 ) ; available . subtractCost ( cost ) ; "<AssertPlaceHolder>" ; } getRed ( ) { return red ; }
org . junit . Assert . assertEquals ( 1 , available . getRed ( ) )
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . portal . kernel . model . BrowserTracker > browserTrackers = _persistence . fetchByPrimar...
org . junit . Assert . assertTrue ( browserTrackers . isEmpty ( ) )
testDecodeEndpointOpStripped ( ) { java . lang . String result = org . hawkular . apm . api . utils . EndpointUtil . encodeEndpoint ( org . hawkular . apm . api . utils . EndpointUtilTest . URI , org . hawkular . apm . api . utils . EndpointUtilTest . OPERATION ) ; "<AssertPlaceHolder>" ; } decodeEndpointOperation ( ja...
org . junit . Assert . assertEquals ( org . hawkular . apm . api . utils . EndpointUtilTest . OPERATION , org . hawkular . apm . api . utils . EndpointUtil . decodeEndpointOperation ( result , true ) )
size_bicyclo ( ) { int [ ] [ ] bicyclo = org . openscience . cdk . graph . InitialCyclesTest . bicyclo ( ) ; org . openscience . cdk . graph . RelevantCycles relevant = new org . openscience . cdk . graph . RelevantCycles ( bicyclo ) ; "<AssertPlaceHolder>" ; } size ( ) { return this . cells . size ( ) ; }
org . junit . Assert . assertThat ( relevant . size ( ) , org . hamcrest . CoreMatchers . is ( 3 ) )
testDeleteProcessInstanceInfoLogByProcessId ( ) { int p = 0 ; java . lang . String processId = pilTestData [ ( p ++ ) ] . getProcessId ( ) ; java . lang . String processId2 = pilTestData [ ( p ++ ) ] . getProcessId ( ) ; org . kie . internal . runtime . manager . audit . query . ProcessInstanceLogDeleteBuilder updateBu...
org . junit . Assert . assertEquals ( 2 , result )