input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testParseDfxs ( ) { try { parser = new com . exigeninsurance . x4j . analytic . xlsx . transform . pdf . PdfStylesParser ( stream ) ; java . util . List < org . w3c . dom . Node > result = parser . parseDxfs ( ) ; int expectedSize = com . exigeninsurance . x4j . analytic . xlsx . transform . pdf . PdfStylesParserTest .... | org . junit . Assert . assertEquals ( expectedSize , actualSize ) |
testSrandCommand ( ) { ifc . eval ( "srand<sp>98765" ) ; java . util . List < java . lang . Integer > firstInts = new java . util . ArrayList < java . lang . Integer > ( ) ; for ( int i = 0 ; i < 1000 ; ++ i ) { firstInts . add ( ifc . getAgent ( ) . getRandom ( ) . nextInt ( ) ) ; } ifc . eval ( "srand<sp>98765" ) ; j... | org . junit . Assert . assertEquals ( firstInts , secondInts ) |
testLoadNonExistingRepoOk ( ) { nl . lxtreme . ols . config . provision . impl . File repoFile = createTempFile ( ) ; "<AssertPlaceHolder>" ; new nl . lxtreme . ols . config . provision . impl . ConfigFileRepository ( ) . load ( repoFile ) ; } createTempFile ( ) { nl . lxtreme . ols . config . provision . impl . File r... | org . junit . Assert . assertTrue ( repoFile . delete ( ) ) |
testFindByG_U_F_M_StatusInTrash_EmptyRepositories ( ) { com . liferay . portal . kernel . dao . orm . QueryDefinition < com . liferay . document . library . kernel . model . DLFileEntry > queryDefinition = new com . liferay . portal . kernel . dao . orm . QueryDefinition ( ) ; queryDefinition . setStatus ( WorkflowCons... | org . junit . Assert . assertEquals ( dlFileEntries . toString ( ) , 2 , dlFileEntries . size ( ) ) |
shouldReturnBoundaryForHat ( ) { edu . stanford . bmir . protege . web . shared . entity . EntityNameCharType type = edu . stanford . bmir . protege . web . shared . entity . EntityNameCharType . getType ( 0 , '^' , 1 ) ; "<AssertPlaceHolder>" ; } getType ( int , char , int ) { if ( java . lang . Character . isUpperCas... | org . junit . Assert . assertEquals ( EntityNameCharType . BOUNDARY , type ) |
testSuccessfulCoreModelListWithSimpleValueType ( ) { org . jboss . dmr . ModelNode description = createSubsystemSkeleton ( ModelType . LIST , ModelType . INT ) ; java . util . List < org . jboss . as . subsystem . test . ModelDescriptionValidator . ValidationFailure > errors = validate ( description , null ) ; "<Assert... | org . junit . Assert . assertEquals ( errors . toString ( ) , 0 , errors . size ( ) ) |
testWrite ( ) { final java . lang . String collectionName = "testWrite" ; final int numElements = 1000 ; pipeline . apply ( org . apache . beam . sdk . transforms . Create . of ( org . apache . beam . sdk . io . mongodb . MongoDbIOTest . createDocuments ( numElements ) ) ) . apply ( org . apache . beam . sdk . io . mon... | org . junit . Assert . assertEquals ( numElements , org . apache . beam . sdk . io . mongodb . MongoDbIOTest . countElements ( collectionName ) ) |
refresh_sharp_noKeep_eternalAfterRefresh ( ) { final int KEY = 1 ; final org . cache2k . test . core . expiry . CountingLoader _LOADER = new org . cache2k . test . core . expiry . CountingLoader ( ) ; final org . cache2k . Cache < java . lang . Integer , java . lang . Integer > c = builder ( org . cache2k . test . core... | org . junit . Assert . assertEquals ( 0 , v ) |
getVServersForTemplate_ServerTemplateIdNotMatching ( ) { org . oscm . app . iaas . data . IaasContext iaasContext = mock ( org . oscm . app . iaas . data . IaasContext . class ) ; doReturn ( iaasContext ) . when ( properties ) . getIaasContext ( ) ; org . oscm . app . ror . client . LPlatformClient platformClient = pre... | org . junit . Assert . assertEquals ( 0 , result . size ( ) ) |
shouldDeleteFromInnerStoreAndRecordDeleteMetric ( ) { expect ( inner . delete ( keyBytes ) ) . andReturn ( valueBytes ) ; init ( ) ; metered . delete ( key ) ; final org . apache . kafka . common . metrics . KafkaMetric metric = metric ( "delete-rate" ) ; "<AssertPlaceHolder>" ; verify ( inner ) ; } metricValue ( ) { l... | org . junit . Assert . assertTrue ( ( ( ( java . lang . Double ) ( metric . metricValue ( ) ) ) > 0 ) ) |
listObjectsTest ( ) { fr . gouv . vitam . storage . driver . model . StorageListRequest storageRequest = new fr . gouv . vitam . storage . driver . model . StorageListRequest ( fr . gouv . vitam . storage . offers . workspace . driver . ConnectionImplTest . TENANT_ID , DataCategory . OBJECT . getFolder ( ) , null , tru... | org . junit . Assert . assertNotNull ( jsonNodeRequestResponse ) |
getCompressionTypeTarGzSuccess ( ) { when ( obj . getKey ( ) ) . thenReturn ( java . nio . file . Paths . get ( com . amazonaws . codepipeline . jenkinsplugin . ExtractionToolsTest . FILE_PATH , "Yes.tar.gz" ) . toString ( ) ) ; final com . amazonaws . codepipeline . jenkinsplugin . CodePipelineStateModel . Compression... | org . junit . Assert . assertEquals ( CompressionType . TarGz , compressionType ) |
buildFromGetReponse ( ) { org . elasticsearch . action . get . GetResponse response = mock ( org . elasticsearch . action . get . GetResponse . class , Mockito . RETURNS_DEEP_STUBS ) ; when ( response . getType ( ) ) . thenReturn ( ESEntityType . WAY . getIndiceName ( ) ) ; when ( response . getId ( ) ) . thenReturn ( ... | org . junit . Assert . assertEquals ( expected , actual ) |
shouldNotRemoveForBlankUser ( ) { graphStorage . put ( a , access ) ; final boolean remove = graphStorage . remove ( uk . gov . gchq . gaffer . federatedstore . FederatedGraphStorageTest . GRAPH_ID_A , blankUser ) ; "<AssertPlaceHolder>" ; } remove ( java . lang . String , uk . gov . gchq . gaffer . user . User ) { gra... | org . junit . Assert . assertFalse ( remove ) |
testColumnSumDouble ( ) { org . nd4j . linalg . api . buffer . DataType initialType = org . nd4j . linalg . factory . Nd4j . dataType ( ) ; org . nd4j . linalg . api . buffer . util . DataTypeUtil . setDTypeForContext ( DataType . DOUBLE ) ; org . nd4j . linalg . api . ndarray . INDArray twoByThree = org . nd4j . linal... | org . junit . Assert . assertEquals ( getFailureMessage ( ) , assertion , columnVar ) |
assertGetPendingTasks ( ) { java . util . List < com . netflix . fenzo . TaskRequest > actual = launchingTasks . getPendingTasks ( ) ; "<AssertPlaceHolder>" ; } getPendingTasks ( ) { java . util . List < com . netflix . fenzo . TaskRequest > result = new java . util . ArrayList ( ( ( eligibleJobContextsMap . size ( ) )... | org . junit . Assert . assertThat ( actual . size ( ) , org . hamcrest . core . Is . is ( 20 ) ) |
validate_shouldPassWhenObsHasValidConceptIds ( ) { java . lang . String xml = "<htmlform><obs<sp>conceptIds=\"18,19\">TEST</obs></htmlform>" ; org . openmrs . module . htmlformentry . handler . TagAnalysis analysis = validateObsTag ( xml ) ; "<AssertPlaceHolder>" ; } getErrors ( ) { return errors ; } | org . junit . Assert . assertEquals ( 0 , analysis . getErrors ( ) . size ( ) ) |
testGetVATAmount_NullInput ( ) { org . oscm . domobjects . BillingResult br = new org . oscm . domobjects . BillingResult ( ) ; "<AssertPlaceHolder>" ; } getVATAmount ( ) { org . w3c . dom . Document doc = dataContainer . getDocument ( ) ; if ( doc == null ) { return null ; } java . lang . String vatAmount = org . oscm... | org . junit . Assert . assertNull ( br . getVATAmount ( ) ) |
should_traverse_subnodes_through_node_at_multiple_positions ( ) { int k = 4 ; java . util . List < au . edu . wehi . idsv . debruijn . positional . KmerPathNode > input = new java . util . ArrayList < au . edu . wehi . idsv . debruijn . positional . KmerPathNode > ( ) ; input . add ( KPN ( k , "ATAT" , 1 , 11 , false )... | org . junit . Assert . assertEquals ( 11 , best . size ( ) ) |
testGetSortProperty ( ) { "<AssertPlaceHolder>" ; } getSortProperty ( ) { return sortProperty ; } | org . junit . Assert . assertNull ( builder . getSortProperty ( ) ) |
testSessionContains ( ) { javax . persistence . EntityManager entityManager = null ; javax . persistence . EntityTransaction txn = null ; try { entityManager = entityManagerFactory ( ) . createEntityManager ( ) ; txn = entityManager . getTransaction ( ) ; txn . begin ( ) ; com . vladmihalcea . book . hpjp . hibernate .... | org . junit . Assert . assertTrue ( entityManager . contains ( person ) ) |
testGetProviderNotExisting ( ) { org . guvnor . ala . ui . model . ProviderTypeKey providerTypeKey = new org . guvnor . ala . ui . model . ProviderTypeKey ( "not<sp>exist" , "not<sp>exist" ) ; org . guvnor . ala . ui . model . ProviderKey providerKey = new org . guvnor . ala . ui . model . ProviderKey ( providerTypeKey... | org . junit . Assert . assertNull ( provider ) |
testLongProtocolOpThrows ( ) { try ( io . nats . client . NatsTestServer ts = new io . nats . client . NatsTestServer ( false ) ; io . nats . client . impl . NatsConnection nc = ( ( io . nats . client . impl . NatsConnection ) ( io . nats . client . Nats . connect ( ts . getURI ( ) ) ) ) ) { io . nats . client . impl .... | org . junit . Assert . assertFalse ( true ) |
testKeyOutOfBounds ( ) { try ( com . questdb . store . KVIndex index = new com . questdb . store . KVIndex ( indexFile , com . questdb . store . KvIndexTest . totalKeys , com . questdb . store . KvIndexTest . totalValues , 1 , JournalMode . APPEND , 0 , false ) ) { index . add ( 0 , 0 ) ; index . add ( 1 , 1 ) ; index ... | org . junit . Assert . assertEquals ( 0 , index . getValues ( 2 ) . size ( ) ) |
testFromJson ( ) { com . fasterxml . jackson . databind . JsonNode jsonNode = com . fasterxml . jackson . databind . node . JsonNodeFactory . withExactBigDecimals ( false ) . textNode ( "textNode" ) ; java . lang . Object fromJson = stringType . fromJson ( jsonNode ) ; "<AssertPlaceHolder>" ; } fromJson ( com . fasterx... | org . junit . Assert . assertTrue ( ( fromJson instanceof java . lang . String ) ) |
testHammingSimilarity_Shifted ( ) { org . roaringbitmap . RoaringBitmap baseline = org . roaringbitmap . RoaringBitmap . bitmapOf ( 1 , 2 , 3 , 4 ) ; org . roaringbitmap . RoaringBitmap shifted = org . roaringbitmap . RoaringBitmap . bitmapOf ( ( ( 1 << 17 ) + 1 ) , ( ( 1 << 17 ) + 2 ) , ( ( 1 << 17 ) + 3 ) , ( ( 1 << ... | org . junit . Assert . assertFalse ( baseline . isHammingSimilar ( shifted , 0 ) ) |
testIrodsText ( ) { java . lang . String ruleText = "myTestRule<sp>{<sp>\n<sp>hello;<sp>\n<sp>}" ; org . irods . jargon . core . rule . RuleTypeEvaluator ruleTypeEvaluator = new org . irods . jargon . core . rule . RuleTypeEvaluator ( ) ; org . irods . jargon . core . rule . IrodsRuleInvocationTypeEnum actual = ruleTyp... | org . junit . Assert . assertEquals ( IrodsRuleInvocationTypeEnum . IRODS , actual ) |
testReturnSucceess ( ) { mockService . returnCapacity ( com . facebook . buck . distributed . build_slave . GreedyMultiBuildCapacityTrackerTest . CAPACITY ) ; org . easymock . EasyMock . expectLastCall ( ) . once ( ) ; org . easymock . EasyMock . replay ( mockService ) ; boolean success = capacityTracker . returnCapaci... | org . junit . Assert . assertTrue ( success ) |
testVocabFunctionInMappingFileWithConfigParent ( ) { @ org . geotools . appschema . filter . SuppressWarnings ( "serial" ) final java . util . Map < java . lang . String , java . lang . String > expectedValues = new java . util . HashMap < java . lang . String , java . lang . String > ( ) { { put ( "sc.1" , "urn:cgi:cl... | org . junit . Assert . assertEquals ( expectedValues . get ( fid ) , value ) |
testInvalidConf ( ) { com . streamsets . pipeline . stage . destination . iothub . IotHubProducerTarget target = new com . streamsets . pipeline . stage . destination . iothub . IotHubProducerTargetBuilder ( ) . iotHubName ( "inValidIoTHubName" ) . deviceId ( "inValidDeviceId" ) . sasKey ( "inValidSasKey" ) . build ( )... | org . junit . Assert . assertEquals ( 1 , issues . size ( ) ) |
testFailureUnmarshalStructuredBean ( ) { java . lang . ClassLoader cl = getClass ( ) . getClassLoader ( ) ; java . net . URL standardPbufURL = cl . getResource ( "standard.pbuf" ) ; org . glassfish . hk2 . api . ServiceLocator locator = org . glassfish . hk2 . pbuf . test . utilities . Utilities . enableLocator ( ) ; o... | org . junit . Assert . assertNotNull ( xmlService ) |
toString_A$ ( ) { java . lang . String actual = CurrentLineBreak . CRLF . toString ( ) ; java . lang . String expected = "CRLF" ; "<AssertPlaceHolder>" ; } toString ( ) { return this . name ; } | org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) ) |
test9InOrder10Times ( ) { java . util . Map < java . lang . Integer , java . lang . Long > expected = org . eclipse . tracecompass . analysis . os . linux . ui . tests . view . controlflow . ControlFlowOptimizerTest . getExpected9 ( ) ; java . util . function . Function < java . util . Collection < org . eclipse . trac... | org . junit . Assert . assertEquals ( expected , result ) |
testContains ( ) { org . openscience . cdk . ConformerContainer container = new org . openscience . cdk . ConformerContainer ( confs ) ; org . openscience . cdk . interfaces . IAtomContainer o = container . get ( 0 ) ; "<AssertPlaceHolder>" ; } contains ( org . openscience . cdk . interfaces . IIsotope ) { for ( java .... | org . junit . Assert . assertTrue ( container . contains ( o ) ) |
readingDocumentLocation ( ) { net . openhft . chronicle . wire . Wire wire = createWire ( ) ; if ( wire instanceof net . openhft . chronicle . wire . TextWire ) ( ( net . openhft . chronicle . wire . TextWire ) ( wire ) ) . useBinaryDocuments ( ) ; wire . writeDocument ( true , ( w ) -> w . write ( "header" ) . text ( ... | org . junit . Assert . assertEquals ( "text" , dc . wire ( ) . read ( ( ) -> "message" ) . text ( ) ) |
testObjectId ( ) { org . jinstagram . realtime . InstagramSubscription fixture = new org . jinstagram . realtime . InstagramSubscription ( ) ; java . lang . String objectId = "" ; org . jinstagram . realtime . InstagramSubscription result = fixture . objectId ( objectId ) ; "<AssertPlaceHolder>" ; } objectId ( java . l... | org . junit . Assert . assertNotNull ( result ) |
testStringArrayWithNullTextConversion ( ) { java . lang . String field = "urn:the.field:used.for.this.Test" ; org . apache . stanbol . entityhub . servicesapi . model . Representation rep = createRepresentation ( null ) ; rep . add ( field , new java . lang . String [ ] { null , "en" } ) ; "<AssertPlaceHolder>" ; } get... | org . junit . Assert . assertFalse ( rep . get ( field ) . hasNext ( ) ) |
testCase25 ( ) { org . evosuite . testcase . DefaultTestCase tc = buildTestCase25 ( ) ; java . util . List < org . evosuite . symbolic . BranchCondition > branch_conditions = executeTest ( tc ) ; "<AssertPlaceHolder>" ; } size ( ) { return theTest . size ( ) ; } | org . junit . Assert . assertEquals ( 8 , branch_conditions . size ( ) ) |
debieraObtenerProveedor ( ) { mx . edu . um . mateo . general . dao . ProveedorDaoTest . log . debug ( "Debiera<sp>obtener<sp>proveedor" ) ; mx . edu . um . mateo . general . dao . Organizacion organizacion = new mx . edu . um . mateo . general . dao . Organizacion ( "tst-01" , "test-01" , "test-01" ) ; currentSession ... | org . junit . Assert . assertEquals ( "tst-01" , result . getNombre ( ) ) |
readLocal ( ) { java . io . File tsvFile = temporaryFolder . newFile ( "data.tsv" ) ; org . apache . commons . io . FileUtils . writeStringToFile ( tsvFile , "1\thello\tX\n2\taloha\tY\n" , java . nio . charset . Charset . forName ( "UTF-8" ) ) ; cascading . tap . local . FileTap fileTap = new cascading . tap . local . ... | org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( expected ) ) |
testInvertOneBit ( ) { final net . meisen . dissertation . impl . indexes . datarecord . slices . EWAHBitmap bitmap = new net . meisen . dissertation . impl . indexes . datarecord . slices . EWAHBitmap ( ) ; net . meisen . dissertation . impl . indexes . datarecord . slices . EWAHBitmap result ; bitmap . set ( 0 ) ; re... | org . junit . Assert . assertEquals ( 0 , result . getIds ( ) . length ) |
testCreation2 ( ) { logger . info ( "Begin<sp>coucou" ) ; org . linagora . linshare . mongo . entities . SharedSpaceNode node = new org . linagora . linshare . mongo . entities . SharedSpaceNode ( "thread1" , null , org . linagora . linshare . core . domain . constants . NodeType . WORK_GROUP ) ; node = sharedSpaceNode... | org . junit . Assert . assertEquals ( 3 , findAll . size ( ) ) |
testFailedCase ( ) { java . lang . String codeWithError = "package<sp>foo;\n" + ( ( ( ( "\tpublic<sp>class<sp>Single2<sp>{\n" + "\tpublic<sp>static<sp>void<sp>main(String[]<sp>args){\n" ) + "\t\tint<sp>ss<sp>=<sp>1;;\n" ) + "\t}\n" ) + "}" ) ; org . eclipse . core . resources . IFile file = project . getFile ( "src/mai... | org . junit . Assert . assertEquals ( result , BuildWorkspaceStatus . WITH_ERROR ) |
testGetMediaInfoCommandReceived ( ) { net . holmes . core . business . streaming . upnp . device . UpnpDevice device = createMock ( net . holmes . core . business . streaming . upnp . device . UpnpDevice . class ) ; net . holmes . core . business . streaming . device . CommandFailureHandler failureHandler = createMock ... | org . junit . Assert . assertEquals ( mediaInfo , result ) |
testRowValueConstructorOnRHSWithBuiltInFunctionOperatingOnIntegerLiteralOnLHS ( ) { long ts = nextTimestamp ( ) ; java . lang . String tenantId = getOrganizationId ( ) ; initATableValues ( tenantId , getDefaultSplits ( tenantId ) , null , ts ) ; java . lang . String query = "SELECT<sp>a_integer,<sp>x_integer<sp>FROM<sp... | org . junit . Assert . assertEquals ( 3 , count ) |
test_threadExit ( ) { java . lang . String command = "import<sp>thread\n" + ( "thread.exit()\n" + "output[\'content\']<sp>=<sp>\'no<sp>error?\'\n" ) ; execute ( command ) ; "<AssertPlaceHolder>" ; } execute ( com . netsuite . webservices . test . platform . NetSuitePortType ) { com . netsuite . webservices . test . pla... | org . junit . Assert . assertTrue ( true ) |
testSerialization ( ) { org . jfree . data . time . ohlc . OHLCSeries s1 = new org . jfree . data . time . ohlc . OHLCSeries ( "s1" ) ; s1 . add ( new org . jfree . data . time . Year ( 2006 ) , 2.0 , 4.0 , 1.0 , 3.0 ) ; org . jfree . data . time . ohlc . OHLCSeries s2 = ( ( org . jfree . data . time . ohlc . OHLCSerie... | org . junit . Assert . assertEquals ( s1 , s2 ) |
testFindByIdWithAccessDeniedException ( ) { java . lang . Long id = 1L ; java . lang . String name = "name" ; java . lang . String abbrName = "abbrName" ; java . lang . String group = "developers" ; java . lang . Class < org . lnu . is . domain . department . Department > clazz = org . lnu . is . domain . department . ... | org . junit . Assert . assertEquals ( expected , actual ) |
testNonDominationRankMinimize ( ) { org . evosuite . ga . metaheuristics . NSGAII < org . evosuite . ga . NSGAChromosome > ga = new org . evosuite . ga . metaheuristics . NSGAII < org . evosuite . ga . NSGAChromosome > ( null ) ; org . evosuite . ga . operators . selection . BinaryTournamentSelectionCrowdedComparison t... | org . junit . Assert . assertTrue ( ( ( ts . getIndex ( population ) ) == 1 ) ) |
testSetRootProvider ( ) { org . apache . jackrabbit . oak . spi . security . CompositeConfiguration cc = new org . apache . jackrabbit . oak . spi . security . CompositeConfiguration ( "name" ) { } ; org . apache . jackrabbit . oak . plugins . tree . RootProvider rootProvider = org . mockito . Mockito . mock ( org . ap... | org . junit . Assert . assertSame ( rootProvider , cc . getRootProvider ( ) ) |
testShouldParseValidStringToEnum ( ) { final org . apache . flink . configuration . ConfigOption < java . lang . String > configOption = org . apache . flink . configuration . ConfigurationTest . createStringConfigOption ( ) ; final org . apache . flink . configuration . Configuration configuration = new org . apache .... | org . junit . Assert . assertEquals ( org . apache . flink . configuration . ConfigurationTest . TestEnum . VALUE1 , parsedEnumValue ) |
testShortenSignature ( ) { for ( java . lang . String s : new java . lang . String [ ] { "LLI" 4 , "LLI" 5 , "ILL" , "LLI" 7 , "LLI" , "IILL" , "ILIL" , "ILLI" , "LLL=L3" , "LLI" 1 , "LLLLLLLLLL=L10" , "LLI" 0 , "IDDD=ID3" , "IIDDD=IID3" , "LLI" 3 , "IIIDD=I3DD" } ) { java . lang . String s2 = s . substring ( ( ( s . i... | org . junit . Assert . assertEquals ( ks2 , ks3 ) |
testCreate_5_reproc ( ) { java . io . File testFile = new java . io . File ( getClass ( ) . getResource ( "test_5_reproc_MTL.txt" ) . getFile ( ) ) ; org . esa . beam . dataio . landsat . geotiff . LandsatMetadata landsatMetadata = org . esa . beam . dataio . landsat . geotiff . LandsatMetadataFactory . create ( testFi... | org . junit . Assert . assertTrue ( ( landsatMetadata instanceof org . esa . beam . dataio . landsat . geotiff . LandsatReprocessedMetadata ) ) |
windowUpdateShouldNotBeSentAfterEndOfStream ( ) { int dataSize = ( ( int ) ( ( io . netty . handler . codec . http2 . Http2CodecUtil . DEFAULT_WINDOW_SIZE ) * ( io . netty . handler . codec . http2 . DefaultHttp2LocalFlowController . DEFAULT_WINDOW_UPDATE_RATIO ) ) ) + 1 ; receiveFlowControlledFrame ( io . netty . hand... | org . junit . Assert . assertTrue ( consumeBytes ( io . netty . handler . codec . http2 . DefaultHttp2LocalFlowControllerTest . STREAM_ID , dataSize ) ) |
testCorrectnessOfMissingUntilFinished ( ) { org . apache . taverna . scufl2 . api . core . BlockingControlLink bcl = new org . apache . taverna . scufl2 . api . core . BlockingControlLink ( ) ; org . apache . taverna . scufl2 . api . core . Processor block = new org . apache . taverna . scufl2 . api . core . Processor ... | org . junit . Assert . assertEquals ( 0 , rcvl . getNullFieldProblems ( ) . size ( ) ) |
shouldRejectPutHttpssWithOutType ( ) { hm = org . openstack . atlas . api . validation . validators . HealthMonitorValidatorTest . whenValidatingPut . initHealthMonitor ( null , null , "10" , "20" , "10" , "/mnt/pfft" , ".*" , ".*" ) ; result = hmv . validate ( hm , org . openstack . atlas . api . validation . validato... | org . junit . Assert . assertFalse ( resultMessage ( result , org . openstack . atlas . api . validation . validators . PUT ) , result . passedValidation ( ) ) |
testGetParametersWithDefaultEntityAndDisabledStatus ( ) { unit . setActive ( false ) ; org . lnu . is . domain . family . type . FamilyType entity = new org . lnu . is . domain . family . type . FamilyType ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected = new java . util . HashMap < jav... | org . junit . Assert . assertEquals ( expected , actual ) |
testToevalligeGeboorte ( ) { final nl . moderniseringgba . migratie . conversie . model . brp . BrpPersoonslijstBuilder builder = new nl . moderniseringgba . migratie . conversie . model . brp . BrpPersoonslijstBuilder ( ) ; builder . samengesteldeNaamStapel ( maakKindSamengesteldeNaamStapel ( ) ) ; builder . geboorteS... | org . junit . Assert . assertNotNull ( lo3Persoonslijst ) |
whenLoadPlusServiceSizeDoesNotExceedsVehicleCapacity_itShouldReturnTrue ( ) { com . graphhopper . jsprit . core . problem . job . Service service = mock ( com . graphhopper . jsprit . core . problem . job . Service . class ) ; when ( service . getSize ( ) ) . thenReturn ( Capacity . Builder . newInstance ( ) . addDimen... | org . junit . Assert . assertTrue ( constraint . fulfilled ( iContext ) ) |
test_3_ReleaseCollection_1_WithAuth ( ) { long totalFileSize = 0 ; de . mpg . imeji . rest . api . DefaultItemService service = new de . mpg . imeji . rest . api . DefaultItemService ( ) ; initCollection ( ) ; initItem ( "test" ) ; totalFileSize += service . read ( itemId , JenaUtil . testUser ) . getFileSize ( ) ; ini... | org . junit . Assert . assertEquals ( ( ( service . read ( itemId , JenaUtil . testUser2 ) . getFileSize ( ) ) + totalFileSize ) , result ) |
testEncryptSignature ( ) { org . apache . cxf . service . Service service = createService ( ) ; org . apache . wss4j . stax . ext . WSSSecurityProperties inProperties = new org . apache . wss4j . stax . ext . WSSSecurityProperties ( ) ; inProperties . setCallbackHandler ( new org . apache . cxf . ws . security . wss4j ... | org . junit . Assert . assertEquals ( "test" , echo . echo ( "test" ) ) |
testGetIdentityForeingRef ( ) { org . apache . jackrabbit . oak . spi . security . authentication . external . ExternalIdentityRef ref = new org . apache . jackrabbit . oak . spi . security . authentication . external . ExternalIdentityRef ( "id" , "anotherName" ) ; "<AssertPlaceHolder>" ; } getIdentity ( org . apache ... | org . junit . Assert . assertNull ( provider . getIdentity ( ref ) ) |
validate_shouldPassValidationIfFieldLengthsAreCorrect ( ) { org . openmrs . hl7 . HL7Source hl7Source = new org . openmrs . hl7 . HL7Source ( ) ; hl7Source . setName ( "name" ) ; org . springframework . validation . Errors errors = new org . springframework . validation . BindException ( hl7Source , "hl7Source" ) ; new... | org . junit . Assert . assertFalse ( errors . hasErrors ( ) ) |
testNnLearnsNewStorages ( ) { final java . lang . String newStorageUuid = java . util . UUID . randomUUID ( ) . toString ( ) ; final org . apache . hadoop . hdfs . server . protocol . DatanodeStorage newStorage = new org . apache . hadoop . hdfs . server . protocol . DatanodeStorage ( newStorageUuid ) ; org . apache . ... | org . junit . Assert . assertNotNull ( storageInfo ) |
shouldDoPartialUpdateForExistingDocument ( ) { java . lang . String documentId = randomNumeric ( 5 ) ; java . lang . String messageBeforeUpdate = "some<sp>test<sp>message" ; java . lang . String messageAfterUpdate = "test<sp>message" ; org . springframework . data . elasticsearch . entities . SampleEntity sampleEntity ... | org . junit . Assert . assertThat ( indexedEntity . getMessage ( ) , is ( messageAfterUpdate ) ) |
shouldDetermineWhetherPaymentApplied ( ) { when ( loanBO . getCurrency ( ) ) . thenReturn ( org . mifos . accounts . loan . business . RUPEE ) ; loanScheduleEntity . setAccount ( loanBO ) ; loanScheduleEntity . setPrincipalPaid ( makeMoney ( 0 ) ) ; loanScheduleEntity . setInterestPaid ( makeMoney ( 0 ) ) ; loanSchedul... | org . junit . Assert . assertThat ( loanScheduleEntity . isPaymentApplied ( ) , org . hamcrest . Matchers . is ( true ) ) |
toString_WithController_NoAction_NoParamPath ( ) { org . bigtesting . routd . Route r = new org . bigtesting . routd . Route ( "/cntrl" ) ; "<AssertPlaceHolder>" ; } toString ( ) { return pattern . toString ( ) ; } | org . junit . Assert . assertEquals ( "/cntrl" , r . toString ( ) ) |
cacheEnabled ( ) { "<AssertPlaceHolder>" ; } isCache ( ) { return ( ( engine . getConfiguration ( ) . getBooleanPropertyValue ( EngineConfigurationKey . TEMPLATE_CACHE_ENABLED ) ) && ( ! ( engine . getConfiguration ( ) . getBooleanPropertyValue ( EngineConfigurationKey . DEBUG_MODE ) ) ) ) && ( super . isCache ( ) ) ; ... | org . junit . Assert . assertThat ( resolver . isCache ( ) , org . hamcrest . Matchers . is ( true ) ) |
testInterfaceSummaryByHour ( ) { java . util . List < me . hao0 . wechat . model . data . interfaces . InterfaceSummaryHour > summaries = wechat . data ( ) . interfaceSummaryHourly ( accessToken , "2015-11-19" ) ; "<AssertPlaceHolder>" ; System . out . println ( summaries ) ; } interfaceSummaryHourly ( java . lang . St... | org . junit . Assert . assertNotNull ( summaries ) |
testGetResourcesNoPredicate ( ) { org . apache . ambari . server . controller . spi . Request request = createNiceMock ( org . apache . ambari . server . controller . spi . Request . class ) ; org . apache . ambari . server . orm . entities . BlueprintEntity entity = createEntity ( org . apache . ambari . server . cont... | org . junit . Assert . assertEquals ( 1 , setResults . size ( ) ) |
testGetNamespacesNoFile ( ) { registry . init ( ) ; "<AssertPlaceHolder>" ; } getNamespaces ( ) { if ( ( namespaces ) == null ) { namespaces = new java . util . HashMap ( ) ; } return namespaces ; } | org . junit . Assert . assertEquals ( 0 , registry . getNamespaces ( ) . size ( ) ) |
testShiftVertexNumParamsTrue ( ) { org . deeplearning4j . nn . conf . graph . ShiftVertex sv = new org . deeplearning4j . nn . conf . graph . ShiftVertex ( 0.7 ) ; "<AssertPlaceHolder>" ; } numParams ( int ) { return 0 ; } | org . junit . Assert . assertEquals ( 0 , sv . numParams ( true ) ) |
testSplitRollbackOnRegionClosing ( ) { final org . apache . hadoop . hbase . TableName tableName = org . apache . hadoop . hbase . TableName . valueOf ( name . getMethodName ( ) ) ; org . apache . hadoop . hbase . client . Table t = createTableAndWait ( tableName , HConstants . CATALOG_FAMILY ) ; java . util . List < o... | org . junit . Assert . assertEquals ( regionCount , cluster . getRegions ( hri . getTable ( ) ) . size ( ) ) |
noChange ( ) { org . eclipse . elk . alg . layered . graph . Layer leftLayer = makeLayer ( getGraph ( ) ) ; org . eclipse . elk . alg . layered . graph . Layer rightLayer = makeLayer ( getGraph ( ) ) ; org . eclipse . elk . alg . layered . graph . LNode [ ] leftNodes = addNodesToLayer ( 1 , leftLayer ) ; org . eclipse ... | org . junit . Assert . assertFalse ( improved ) |
test10SuffixSearch2 ( ) { java . lang . String query = "ServiceInstance<@https>[@https=false]{<sp>@https,<sp>$max(@port),<sp>$min(@port),<sp>$count()}" ; com . ebay . cloud . cms . query . service . IQueryResult result = queryService . query ( query , raptorContext ) ; "<AssertPlaceHolder>" ; System . out . println ( r... | org . junit . Assert . assertEquals ( 1 , result . getEntities ( ) . size ( ) ) |
testStop ( ) { com . hp . application . automation . tools . sse . sdk . Client client = new com . hp . application . automation . tools . sse . sdk . TestTestSetRunHandler . MockRestStopClient ( URL , DOMAIN , PROJECT , USER ) ; com . hp . application . automation . tools . sse . sdk . Response response = new com . hp... | org . junit . Assert . assertTrue ( response . isOk ( ) ) |
testGetCondition ( ) { com . eclipsesource . v8 . debug . DebugHandler handler = new com . eclipsesource . v8 . debug . DebugHandler ( v8 ) ; int breakPointID = handler . setScriptBreakpoint ( "script" , 3 ) ; com . eclipsesource . v8 . debug . ScriptBreakPoint breakPoint = handler . getScriptBreakPoint ( breakPointID ... | org . junit . Assert . assertEquals ( "x=7;" , result ) |
shouldReturnArgAsOptional ( ) { final org . apache . tinkerpop . gremlin . driver . message . RequestMessage msg = org . apache . tinkerpop . gremlin . driver . message . RequestMessage . build ( "op" ) . add ( "test" , "testing" ) . create ( ) ; "<AssertPlaceHolder>" ; } optionalArgs ( java . lang . String ) { final j... | org . junit . Assert . assertEquals ( "testing" , msg . optionalArgs ( "test" ) . get ( ) ) |
testBuildSelectRowIds ( ) { org . sagebionetworks . repo . model . table . RowReference ref1 = new org . sagebionetworks . repo . model . table . RowReference ( ) ; ref1 . setRowId ( 222L ) ; org . sagebionetworks . repo . model . table . RowReference ref2 = new org . sagebionetworks . repo . model . table . RowReferen... | org . junit . Assert . assertEquals ( expected , sql ) |
testClear ( ) { tested . role = role ; tested . clear ( ) ; "<AssertPlaceHolder>" ; verify ( roleEditor ) . clear ( ) ; verify ( roleEditor , never ( ) ) . show ( any ( org . jboss . errai . security . shared . api . Role . class ) ) ; verify ( view , atLeastOnce ( ) ) . clearNotifications ( ) ; verify ( view , never (... | org . junit . Assert . assertNull ( tested . role ) |
testGetErrorMessage ( ) { final java . lang . String errorMessage = mIsPositiveInteger . getErrorMessage ( mActivity ) ; "<AssertPlaceHolder>" ; } getErrorMessage ( android . content . Context ) { return context . getString ( R . string . formvalidations_not_email ) ; } | org . junit . Assert . assertNotNull ( errorMessage ) |
testConnectToAliasedController ( ) { org . jboss . as . test . integration . management . cli . CliControllerConfigTestCase . JbossCliConfig jbossCliConfig = new org . jboss . as . test . integration . management . cli . CliControllerConfigTestCase . JbossCliConfig ( ) . setUseLegacyOverride ( true ) . setDefaultProtoc... | org . junit . Assert . assertTrue ( returnState ) |
testQueryListAllShardsWithMerger ( ) { try { com . ctrip . platform . dal . dao . shard . DalHints hints = new com . ctrip . platform . dal . dao . shard . DalHints ( ) ; java . util . List < java . lang . Short > result = queryListInAllShard ( hints . mergeBy ( new com . ctrip . platform . dal . dao . shard . DalQuery... | org . junit . Assert . assertEquals ( new java . lang . Short ( ( ( short ) ( 3 ) ) ) , t ) |
attemptToUpdateVisitWithoutFirstSelectingAVisit ( ) { petclinic . visits . Pet pet = petData . create ( "Samantha" , null , "hamster" ) ; visitScreen . selectPet ( pet . getId ( ) ) ; visitScreen . createOrUpdateVisit ( ) ; "<AssertPlaceHolder>" ; } getVisit ( ) { return visit ; } | org . junit . Assert . assertNull ( visitScreen . getVisit ( ) ) |
test_LocalDate_adjustToInternationalFixedDate ( ) { org . threeten . extra . chrono . InternationalFixedDate fixed = org . threeten . extra . chrono . InternationalFixedDate . of ( 2012 , 7 , 19 ) ; java . time . LocalDate test = LocalDate . MIN . with ( fixed ) ; "<AssertPlaceHolder>" ; } of ( int , int , int ) { org ... | org . junit . Assert . assertEquals ( java . time . LocalDate . of ( 2012 , 7 , 6 ) , test ) |
testValidateInvalidRateWithTooMuchPrecision ( ) { form . setCharge ( "1.123456" ) ; form . setChargeType ( constructChargeType ( org . mifos . accounts . struts . actionforms . ApplyChargeActionFormTest . IS_PENALTY_TYPE , org . mifos . accounts . struts . actionforms . ApplyChargeActionFormTest . FEE_ID , org . mifos ... | org . junit . Assert . assertEquals ( 1 , errors . size ( ) ) |
deveObterCnpjComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . cadastro . NFRetornoConsultaCadastroDados retornoConsultaCadastroDados = new com . fincatto . documentofiscal . nfe400 . classes . cadastro . NFRetornoConsultaCadastroDados ( ) ; retornoConsultaCadastroDados . setCnpj ( "280877... | org . junit . Assert . assertEquals ( "28087726000122" , retornoConsultaCadastroDados . getCnpj ( ) ) |
testConvertLocalDateToSQLDateAndBack ( ) { java . time . LocalDate date = java . time . LocalDate . of ( 2016 , Month . FEBRUARY , 25 ) ; java . sql . Date sqlDate = com . github . resource4j . converters . TypeConverter . convert ( date , java . util . Date . class ) ; java . time . LocalDate result = com . github . r... | org . junit . Assert . assertEquals ( date , result ) |
findAll ( ) { org . linagora . linshare . service . UploadRequestGroupServiceImplTest . logger . info ( LinShareTestConstants . BEGIN_TEST ) ; java . util . List < org . linagora . linshare . core . domain . entities . UploadRequestGroup > groups = uploadRequestGroupService . findAll ( john , john , null ) ; "<AssertPl... | org . junit . Assert . assertNotNull ( groups . get ( 0 ) ) |
testFromEbXMLNull ( ) { org . openehealth . ipf . commons . ihe . xds . core . requests . query . FindFoldersForMultiplePatientsQuery result = new org . openehealth . ipf . commons . ihe . xds . core . requests . query . FindFoldersForMultiplePatientsQuery ( ) ; transformer . fromEbXML ( result , null ) ; "<AssertPlace... | org . junit . Assert . assertEquals ( new org . openehealth . ipf . commons . ihe . xds . core . requests . query . FindFoldersForMultiplePatientsQuery ( ) , result ) |
innerClassShouldWork ( ) { net . sourceforge . pmd . lang . java . ast . ASTCompilationUnit acu = net . sourceforge . pmd . lang . java . ParserTstUtil . buildDFA ( ( "class<sp>Foo<sp>{" + ( ( ( ( "<sp>void<sp>bar()<sp>{" + "<sp>class<sp>X<sp>{}" ) + "<sp>int<sp>i;" ) + "<sp>}" ) + "}" ) ) ) ; "<AssertPlaceHolder>" ; }... | org . junit . Assert . assertNotNull ( acu ) |
testHeeftNamenReeksEnGeenVoorvoegsel ( ) { final nl . bzk . brp . model . hisvolledig . momentview . kern . FamilierechtelijkeBetrekkingView familierechtelijkeBetrekking = bouwFamilierechtelijkeBetrekking ( true , null ) ; final java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > berichtEntiteits = ... | org . junit . Assert . assertTrue ( berichtEntiteits . isEmpty ( ) ) |
testGetResourceValueOPT1 ( ) { org . apache . jena . tools . schemagen . SchemagenOptions so0 = new org . apache . jena . tools . schemagen . SchemagenOptions ( ) ; org . apache . jena . rdf . model . Resource r = org . apache . jena . rdf . model . ResourceFactory . createResource ( "http://example.org/foo" ) ; so0 . ... | org . junit . Assert . assertEquals ( r , so0 . getResource ( OPT . ROOT ) ) |
getFragLength ( ) { final com . rapid7 . client . dcerpc . Header header = unmarshalHeader ( com . rapid7 . client . dcerpc . Test_Header . HEADER_HEX_STRING ) ; "<AssertPlaceHolder>" ; } getFragLength ( ) { return fragLength ; } | org . junit . Assert . assertEquals ( 16 , header . getFragLength ( ) ) |
testMultiLayerIndex ( ) { de . vandermeer . svg2vector . applications . is . Svg2Vector_IS app = new de . vandermeer . svg2vector . applications . is . Svg2Vector_IS ( ) ; java . lang . String [ ] args = org . apache . commons . lang3 . ArrayUtils . addAll ( de . vandermeer . svg2vector . applications . is . Test_Svg2V... | org . junit . Assert . assertEquals ( 0 , app . executeApplication ( args ) ) |
testFormHeadersWithToken ( ) { final java . lang . String authHeader = org . opendaylight . aaa . shiro . realm . util . http . header . HeaderUtils . getEncodedToken ( org . opendaylight . aaa . shiro . realm . util . http . header . HeaderUtils . getTokenAuthHeader ( org . opendaylight . aaa . shiro . realm . util . ... | org . junit . Assert . assertTrue ( actualHeaders . get ( key ) . equals ( value ) ) |
givenUserService_whenAddUser_thenOK ( ) { expect ( userService . addUser ( isA ( com . baeldung . easymock . User . class ) ) ) . andReturn ( true ) ; replay ( userService ) ; boolean result = userService . addUser ( new com . baeldung . easymock . User ( ) ) ; verify ( userService ) ; "<AssertPlaceHolder>" ; } verify ... | org . junit . Assert . assertTrue ( result ) |
testAfterUpdate ( ) { when ( cache . update ( any ( ) , any ( ) , any ( ) , any ( org . hibernate . cache . spi . access . SoftLock . class ) ) ) . thenThrow ( new com . hazelcast . core . HazelcastException ( "expected<sp>exception" ) ) ; "<AssertPlaceHolder>" ; } afterUpdate ( java . lang . Object , java . lang . Obj... | org . junit . Assert . assertFalse ( delegate . afterUpdate ( null , null , null , null , null ) ) |
testTweetTokeniseJSONStream ( ) { java . lang . String tokMode = "TOKENISE" ; java . io . File tokenOutJSON = folder . newFile ( "tokens-testTweetTokeniseJSON.json" ) ; java . lang . String commandArgs = java . lang . String . format ( commandFormat , "-" , tokenOutJSON , tokMode , "APPEND" ) ; org . openimaj . tools .... | org . junit . Assert . assertTrue ( checkSameAnalysis ( jsonTwitterInputFile , tokenOutJSON , m ) ) |
shouldReturnFalseWhenPhoneNumbersAreNull ( ) { org . iilab . pb . model . SMSSettings smsSettings = new org . iilab . pb . model . SMSSettings ( null , "some-message" ) ; "<AssertPlaceHolder>" ; } isConfigured ( ) { if ( ( ( phoneNumbers ) == null ) || ( phoneNumbers . isEmpty ( ) ) ) return false ; for ( java . lang .... | org . junit . Assert . assertFalse ( smsSettings . isConfigured ( ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.